Don't choke if the specified password is null (because we're automatically
logging someone in). git-svn-id: https://samskivert.googlecode.com/svn/trunk@1564 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -245,7 +245,7 @@ public class UserManager
|
|||||||
}
|
}
|
||||||
|
|
||||||
// potentially convert the user's legacy password
|
// potentially convert the user's legacy password
|
||||||
if (password.getCleartext() != null &&
|
if (password != null && password.getCleartext() != null &&
|
||||||
user.updateLegacyPassword(password.getCleartext())) {
|
user.updateLegacyPassword(password.getCleartext())) {
|
||||||
Log.info("Updated legacy password " + user.username + ".");
|
Log.info("Updated legacy password " + user.username + ".");
|
||||||
_repository.updateUser(user);
|
_repository.updateUser(user);
|
||||||
|
|||||||
Reference in New Issue
Block a user