mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-1176: Use translation strings for client error messages.
This commit is contained in:
@@ -124,11 +124,11 @@ public class UserContextService {
|
||||
|
||||
// New password must be different from old password
|
||||
if (newPassword.equals(credentials.getPassword()))
|
||||
throw new GuacamoleClientException("The new password must be different from the expired password.");
|
||||
throw new GuacamoleClientException("LOGIN.ERROR_PASSWORD_SAME");
|
||||
|
||||
// New password must not be blank
|
||||
if (newPassword.isEmpty())
|
||||
throw new GuacamoleClientException("The new password may not be blank.");
|
||||
throw new GuacamoleClientException("LOGIN.ERROR_PASSWORD_BLANK");
|
||||
|
||||
// STUB: Change password if new password given
|
||||
logger.info("Resetting expired password of user \"{}\".", user.getIdentifier());
|
||||
|
@@ -1,4 +1,10 @@
|
||||
{
|
||||
|
||||
"LOGIN" : {
|
||||
"ERROR_PASSWORD_BLANK" : "@:APP.ERROR_PASSWORD_BLANK",
|
||||
"ERROR_PASSWORD_SAME" : "The new password must be different from the expired password."
|
||||
},
|
||||
|
||||
"USER_ATTRIBUTES" : {
|
||||
|
||||
"FIELD_HEADER_DISABLED" : "Login disabled:",
|
||||
@@ -7,4 +13,5 @@
|
||||
"SECTION_HEADER_RESTRICTIONS" : "Account Restrictions"
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -0,0 +1,7 @@
|
||||
{
|
||||
|
||||
"LOGIN" : {
|
||||
"ERROR_PASSWORD_BLANK" : "@:APP.ERROR_PASSWORD_BLANK"
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user