File tree Expand file tree Collapse file tree 5 files changed +10
-8
lines changed
java/ru/mystamps/web/config
webapp/WEB-INF/views/account
test/java/ru/mystamps/web/tests/page Expand file tree Collapse file tree 5 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 19
19
<slf4j .version>1.7.9</slf4j .version>
20
20
<spring .version>4.1.6.RELEASE</spring .version>
21
21
<spring .data.version>1.6.4.RELEASE</spring .data.version>
22
- <spring .security.version>3.2.7 .RELEASE</spring .security.version>
22
+ <spring .security.version>4.0.1 .RELEASE</spring .security.version>
23
23
<h2 .version>1.4.184</h2 .version>
24
24
<javax .validation.version>1.1.0.Final</javax .validation.version>
25
25
<javax .inject.version>1</javax .inject.version>
32
32
<commons .collections.version>3.2.1</commons .collections.version>
33
33
<commons .dbcp.version>1.4</commons .dbcp.version>
34
34
<thymeleaf .version>2.1.4.RELEASE</thymeleaf .version>
35
- <thymeleaf .security.version>2.1.1 .RELEASE</thymeleaf .security.version>
35
+ <thymeleaf .security.version>2.1.2 .RELEASE</thymeleaf .security.version>
36
36
<thymeleaf .togglz.version>1.0.1.RELEASE</thymeleaf .togglz.version>
37
37
<liquibase .version>3.3.2</liquibase .version>
38
38
<liquibase .slf4j.version>1.2.1</liquibase .slf4j.version>
232
232
233
233
<dependency >
234
234
<groupId >org.thymeleaf.extras</groupId >
235
- <artifactId >thymeleaf-extras-springsecurity3 </artifactId >
235
+ <artifactId >thymeleaf-extras-springsecurity4 </artifactId >
236
236
<version >${thymeleaf.security.version} </version >
237
237
</dependency >
238
238
Original file line number Diff line number Diff line change 43
43
import org .springframework .web .servlet .ViewResolver ;
44
44
45
45
import com .github .heneke .thymeleaf .togglz .TogglzDialect ;
46
- import org .thymeleaf .extras .springsecurity3 .dialect .SpringSecurityDialect ;
46
+ import org .thymeleaf .extras .springsecurity4 .dialect .SpringSecurityDialect ;
47
47
import org .thymeleaf .spring4 .SpringTemplateEngine ;
48
48
import org .thymeleaf .spring4 .view .ThymeleafView ;
49
49
import org .thymeleaf .spring4 .view .ThymeleafViewResolver ;
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ <h3 th:text="#{t_authentication_on_site}">
79
79
</div>
80
80
/*/-->
81
81
82
- < div class ="row-fluid " th:with =" lastLogin=${exceptionOccurred ? session.SPRING_SECURITY_LAST_EXCEPTION.authentication.principal : ''} " >
82
+ < div class ="row-fluid ">
83
83
< div class ="span6 offset3 ">
84
84
< form id ="authAccountForm " action ="../site/index.html " th:action ="@{${LOGIN_PAGE}} " method ="post " class ="form-horizontal ">
85
85
@@ -89,7 +89,7 @@ <h3 th:text="#{t_authentication_on_site}">
89
89
< span id ="login.required " class ="required_field "> *</ span >
90
90
</ label >
91
91
< div class ="controls ">
92
- < input type ="text " id ="login " name ="login " required ="required " value ="" th:value =" ${lastLogin} " />
92
+ < input type ="text " id ="login " name ="login " required ="required " value ="" />
93
93
</ div >
94
94
</ div >
95
95
Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ public AuthAccountPage(WebDriver driver) {
46
46
required (inputField ("login" ))
47
47
.withLabel (tr ("t_login" ))
48
48
.and ()
49
- .invalidValue ("x" ),
49
+ .invalidValue ("x" )
50
+ .preserveInvalidValue (false ),
50
51
51
52
required (passwordField ("password" ))
52
53
.withLabel (tr ("t_password" ))
Original file line number Diff line number Diff line change @@ -210,8 +210,9 @@ public Field invalidValue(String invalidValue) {
210
210
return this ;
211
211
}
212
212
213
- protected void preserveInvalidValue (boolean preserveInvalidValue ) {
213
+ public Field preserveInvalidValue (boolean preserveInvalidValue ) {
214
214
this .preserveInvalidValue = preserveInvalidValue ;
215
+ return this ;
215
216
}
216
217
217
218
public boolean shouldPreserveInvalidValue () {
You can’t perform that action at this time.
0 commit comments