errorCodes) {
+ this.errorCodes = errorCodes;
+ }
+}
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 35ede6f..f0eed7e 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -4,14 +4,21 @@ spring.datasource.url=jdbc:mysql://${MYSQL_HOST:localhost}:3306/sweater_db
spring.datasource.username=user
spring.datasource.password=123456
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
+
spring.freemarker.expose-request-attributes=true
spring.freemarker.expose-session-attributes=true
spring.freemarker.suffix=.ftl
upload.path=/home/kashey/soft/sweater/uploads
hosting.path=http://localhost:8080
+
spring.mail.host=smtp.yandex.ru
spring.mail.username=username@yandex.ru
spring.mail.password=pa$$word
spring.mail.port=465
spring.mail.protocol=smtps
-mail.debug=true
\ No newline at end of file
+mail.debug=true
+
+recaptcha.secret=
+spring.session.jdbc.serialize=java
+spring.session.jdbc.initialize-schema=always
+spring.session.jdbc.table-name=SPRING_SESSION
diff --git a/src/main/resources/templates/login.ftl b/src/main/resources/templates/login.ftl
index fca2ec4..393b687 100644
--- a/src/main/resources/templates/login.ftl
+++ b/src/main/resources/templates/login.ftl
@@ -2,9 +2,14 @@
<#import "parts/login.ftl" as l>
<@com.page>
- <#if Session?? && Session.SPRING_SECURITY_LAST_EXCEPTION??>
+ <#if SPRING_SECURITY_LAST_EXCEPTION??>
- ${Session.SPRING_SECURITY_LAST_EXCEPTION.message}
+ ${SPRING_SECURITY_LAST_EXCEPTION.message}
+
+ #if>
+ <#if message??>
+ class="alert alert-${messageType}" role="alert"#if> >
+ ${message}
#if>
<@l.login "/login" false/>
diff --git a/src/main/resources/templates/parts/common.ftl b/src/main/resources/templates/parts/common.ftl
index 5db2558..4fb35ab 100644
--- a/src/main/resources/templates/parts/common.ftl
+++ b/src/main/resources/templates/parts/common.ftl
@@ -6,6 +6,7 @@
+
diff --git a/src/main/resources/templates/parts/login.ftl b/src/main/resources/templates/parts/login.ftl
index 22d5dec..20fdd5a 100644
--- a/src/main/resources/templates/parts/login.ftl
+++ b/src/main/resources/templates/parts/login.ftl
@@ -53,6 +53,14 @@
#if>
+
+
+ <#if captchaError??>
+
+ ${captchaError}
+
+ #if>
+
#if>
<#if !isRegistrationForm>
Add new user