Skip to content

User Queries

brett1479 edited this page Jan 16, 2016 · 13 revisions

User Login

auth/login

Params

username: string,
// SHA256 hash of user password. 
// On server this will be concatenated with salt and re-hashed.
password: string 

Return

"Success Message"

User Register

auth/registerUser

Params

{
  username: string, //Max 30 characters
  password: string, //SHA256 hash, same as in the login query
  email: string,
  affiliation: string
}

Return

"Success Message"

User Logout

auth/logout

Params

Return

"Success Message"

User Change Password

Requires authenticated session.

auth/changePassword

Params

// SHA256 hash of user password. 
// On server this will be concatenated with salt and re-hashed.
password: string 

Return

"Success Message"

Valid Username

Checks if the username has been used already. HTTP 404 on user not exists.

auth/existsUsername/username

URL Params

username: string

Return

User exists

Get User Info

Checks if the username has been used already. HTTP 404 on user not exists.

auth/getUserInfo

Params

Return

{
username: string
email: string
affiliation: string
}
Clone this wiki locally