Skip to content

Commit a3a7d8e

Browse files
committed
Update error messages in Engligh (s/Wrong/Invalid/).
Also don't use an exclamation mark in a message. No functional changes.
1 parent 7dfb9eb commit a3a7d8e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Customized messages for Spring Security
2-
AbstractUserDetailsAuthenticationProvider.badCredentials = Wrong login or password!
2+
AbstractUserDetailsAuthenticationProvider.badCredentials = Invalid login or password
33

Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Собственные сообщения для Spring Security
2-
AbstractUserDetailsAuthenticationProvider.badCredentials = Неправильный логин или пароль!
2+
AbstractUserDetailsAuthenticationProvider.badCredentials = Неправильный логин или пароль
33

Diff for: src/main/resources/ru/mystamps/i18n/ValidationMessages.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ ru.mystamps.web.support.beanvalidation.UniqueCountryName.message = Country alrea
1313
ru.mystamps.web.support.beanvalidation.UniqueCategoryName.message = Category already exists
1414
ru.mystamps.web.support.beanvalidation.UniqueCountrySlug.message = Country with similar name already exists
1515
ru.mystamps.web.support.beanvalidation.UniqueCategorySlug.message = Category with similar name already exists
16-
ru.mystamps.web.support.beanvalidation.ExistingActivationKey.message = Wrong activation key
17-
ru.mystamps.web.support.beanvalidation.Email.message = Wrong e-mail address
16+
ru.mystamps.web.support.beanvalidation.ExistingActivationKey.message = Invalid activation key
17+
ru.mystamps.web.support.beanvalidation.Email.message = Invalid e-mail address
1818
ru.mystamps.web.support.beanvalidation.NotEmptyFilename.message = Value must not be empty
1919
ru.mystamps.web.support.beanvalidation.NotEmptyFile.message = File must not be empty
2020
ru.mystamps.web.support.beanvalidation.CatalogNumbers.message = Value must be comma delimited numbers

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ <h3 th:text="#{t_authentication_on_site}">
7878
<!--/*/
7979
<div class="row" th:if="${requestFailed and exceptionOccurred}">
8080
<div id="form.errors" class="alert alert-danger text-center col-sm-8 col-sm-offset-2" th:with="errorMessage=${session.SPRING_SECURITY_LAST_EXCEPTION.message}" th:text="${errorMessage}">
81-
Wrong login or password!
81+
Invalid login or password
8282
</div>
8383
</div>
8484
/*/-->

0 commit comments

Comments
 (0)