Skip to content

DimaStoyanov/Carcassonne

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authorisation service

Site

Functional

  • Sign up. Takes 3 required arguments: username, email, password and try to create new user. username and email 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 and password - 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 letter login and type 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.

Database

ER Diagram

Because tokens are unique, hibernate will create indices for it, so it's possible to fast find player entry by token