-
Notifications
You must be signed in to change notification settings - Fork 1
User Queries
brett1479 edited this page Jan 16, 2016
·
13 revisions
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"
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"
auth/logout
Params
Return
"Success Message"
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"
Checks if the username has been used already. HTTP 404 on user not exists.
auth/existsUsername/username
URL Params
username: string
Return
User exists
Checks if the username has been used already. HTTP 404 on user not exists.
auth/getUserInfo
Params
Return
{
username: string
email: string
affiliation: string
}