Skip to content

Commit 22dab5c

Browse files

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<slf4j.version>1.7.9</slf4j.version>
2020
<spring.version>4.1.6.RELEASE</spring.version>
2121
<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>
2323
<h2.version>1.4.184</h2.version>
2424
<javax.validation.version>1.1.0.Final</javax.validation.version>
2525
<javax.inject.version>1</javax.inject.version>
@@ -32,7 +32,7 @@
3232
<commons.collections.version>3.2.1</commons.collections.version>
3333
<commons.dbcp.version>1.4</commons.dbcp.version>
3434
<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>
3636
<thymeleaf.togglz.version>1.0.1.RELEASE</thymeleaf.togglz.version>
3737
<liquibase.version>3.3.2</liquibase.version>
3838
<liquibase.slf4j.version>1.2.1</liquibase.slf4j.version>
@@ -232,7 +232,7 @@
232232

233233
<dependency>
234234
<groupId>org.thymeleaf.extras</groupId>
235-
<artifactId>thymeleaf-extras-springsecurity3</artifactId>
235+
<artifactId>thymeleaf-extras-springsecurity4</artifactId>
236236
<version>${thymeleaf.security.version}</version>
237237
</dependency>
238238

src/main/java/ru/mystamps/web/config/MvcConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
import org.springframework.web.servlet.ViewResolver;
4444

4545
import com.github.heneke.thymeleaf.togglz.TogglzDialect;
46-
import org.thymeleaf.extras.springsecurity3.dialect.SpringSecurityDialect;
46+
import org.thymeleaf.extras.springsecurity4.dialect.SpringSecurityDialect;
4747
import org.thymeleaf.spring4.SpringTemplateEngine;
4848
import org.thymeleaf.spring4.view.ThymeleafView;
4949
import org.thymeleaf.spring4.view.ThymeleafViewResolver;

src/main/webapp/WEB-INF/views/account/auth.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ <h3 th:text="#{t_authentication_on_site}">
7979
</div>
8080
/*/-->
8181

82-
<div class="row-fluid" th:with="lastLogin=${exceptionOccurred ? session.SPRING_SECURITY_LAST_EXCEPTION.authentication.principal : ''}">
82+
<div class="row-fluid">
8383
<div class="span6 offset3">
8484
<form id="authAccountForm" action="../site/index.html" th:action="@{${LOGIN_PAGE}}" method="post" class="form-horizontal">
8585

@@ -89,7 +89,7 @@ <h3 th:text="#{t_authentication_on_site}">
8989
<span id="login.required" class="required_field">*</span>
9090
</label>
9191
<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="" />
9393
</div>
9494
</div>
9595

src/test/java/ru/mystamps/web/tests/page/AuthAccountPage.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ public AuthAccountPage(WebDriver driver) {
4646
required(inputField("login"))
4747
.withLabel(tr("t_login"))
4848
.and()
49-
.invalidValue("x"),
49+
.invalidValue("x")
50+
.preserveInvalidValue(false),
5051

5152
required(passwordField("password"))
5253
.withLabel(tr("t_password"))

src/test/java/ru/mystamps/web/tests/page/element/Form.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,9 @@ public Field invalidValue(String invalidValue) {
210210
return this;
211211
}
212212

213-
protected void preserveInvalidValue(boolean preserveInvalidValue) {
213+
public Field preserveInvalidValue(boolean preserveInvalidValue) {
214214
this.preserveInvalidValue = preserveInvalidValue;
215+
return this;
215216
}
216217

217218
public boolean shouldPreserveInvalidValue() {

0 commit comments

Comments
 (0)