Show an error if a user tries to change their password and its the same as before. Fixes #160

This commit is contained in:
Matt Wright
2013-10-16 11:15:17 -04:00
parent b1ac2598c0
commit 9999325ffb
3 changed files with 15 additions and 1 deletions
+1
View File
@@ -116,6 +116,7 @@ _default_messages = {
'INVALID_PASSWORD': ('Invalid password', 'error'),
'PASSWORDLESS_LOGIN_SUCCESSFUL': ('You have successfuly logged in.', 'success'),
'PASSWORD_RESET': ('You successfully reset your password and you have been logged in automatically.', 'success'),
'PASSWORD_IS_THE_SAME': ('Your new password must be different than your previous password.', 'error'),
'PASSWORD_CHANGE': ('You successfully changed your password.', 'success'),
'LOGIN': ('Please log in to access this page.', 'info'),
'REFRESH': ('Please reauthenticate to access this page.', 'info'),