mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-25 19:55:39 +01:00
Fix email not getting updated in database #527
This commit is contained in:
parent
6dfdcf103b
commit
05e79e6356
@ -46,10 +46,12 @@ public class AsyncAddEmail {
|
||||
messages.send(player, MessageKey.INVALID_EMAIL);
|
||||
} else if (dataSource.isEmailStored(email)) {
|
||||
messages.send(player, MessageKey.EMAIL_ALREADY_USED_ERROR);
|
||||
} else {
|
||||
} else if (dataSource.updateEmail(auth)) {
|
||||
auth.setEmail(email);
|
||||
playerCache.updatePlayer(auth);
|
||||
messages.send(player, MessageKey.EMAIL_ADDED_SUCCESS);
|
||||
} else {
|
||||
messages.send(player, MessageKey.ERROR);
|
||||
}
|
||||
} else {
|
||||
sendUnloggedMessage(dataSource);
|
||||
|
Loading…
Reference in New Issue
Block a user