Skip to content

Instantly share code, notes, and snippets.

@anandundavia
Last active April 11, 2018 06:25
Show Gist options
  • Save anandundavia/4a293371fc24519554ac86d071941182 to your computer and use it in GitHub Desktop.
Save anandundavia/4a293371fc24519554ac86d071941182 to your computer and use it in GitHub Desktop.
} else {
throw new UnsupporedOperationException();
} // CLOSE: if (user.isEnabled)
} // CLOSE: if (user.isAdmin)
} // CLOSE: if (oldPasswordDecrypted === newPasswordDecrypted)
} else {
throw new EmailPasswordMissMatchException();
} // CLOSE: if (existingPasswordDecrypted === oldPasswordDecrypted)
} // CLOSE: if (user === null)
} // CLOSE: function changePassword()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment