mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
Add missing field to userData
This commit is contained in:
parent
72e4df539b
commit
b397e2849c
3 changed files with 17 additions and 3 deletions
|
|
@ -157,7 +157,7 @@ public class MageServerImpl implements MageServer {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean resetPassword(String sessionId, String email, String authToken, String password) throws MageException {
|
||||
if (!ConfigSettings.getInstance().isAuthenticationActivated()) {
|
||||
|
|
@ -966,7 +966,8 @@ public class MageServerImpl implements MageServer {
|
|||
user.getGameInfo(),
|
||||
user.getUserState().toString(),
|
||||
user.getChatLockedUntil(),
|
||||
user.getClientVersion()
|
||||
user.getClientVersion(),
|
||||
user.getEmail()
|
||||
));
|
||||
}
|
||||
return users;
|
||||
|
|
|
|||
|
|
@ -783,6 +783,13 @@ public class User {
|
|||
}
|
||||
return number;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
if (authorizedUser != null) {
|
||||
return authorizedUser.email;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
private void updateAuthorizedUser() {
|
||||
if (authorizedUser != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue