- Sign up. Takes 3 required arguments:
username
,email
,password
and try to create new user.username
andemail
should be unique. In case of success, sends a letter to the specified email address with a link to the account confirmation. - Sign in. Takes 2 reqired arguments:
username
,password
and try to sign in. In case of success, returns token, that can be used in the future - Reset password. Takes 2 required arguments:
login
, that can be email or username andpassword
- new password. Then sends a letter to user email with a link to change password. - Send email. Takes 3 arguments:
login
, that can be email or username,password
- new password,type
, that can be Sign up letter or Reset password lettter. If type is Sign up letterlogin
andtype
are required, otherwise all 3 arguments are required. If type is Sign up letter sends a letter to the specified email address with a link to the account confirmation. So you may use that if you have signed up, but didn't receive letter. If type is Reset password letter sends a letter to user email with a link to change password.
Because tokens are unique, hibernate will create indices for it, so it's possible to fast find player entry by token