Optional
api_Optional
idOptional
languageOptional
last_Optional
reset_Optional
reset_Optional
verification_Optional
verified_Create session object for user
Static
tableChange password
new password string
Optional
expireToken: booleanif true than force reset password token
no result
Check password
password string
Delete user based on session object
Add new API token to user
Get new reset token
Remove API token for user
Optional
req: anyOptional
opts: { new_verification_token?: string }Set language for User in database
update 'last_mobile_login' columnwill
new login_date or null for logout (invalidates all jwts)
Static
authenticateStatic
countStatic
createStatic
destroy_Optional
tenant: stringStatic
findFind users list
where object
Optional
selectopts: SelectOptionsselect options
Static
findStatic
findStatic
findFind or Create User
Optional
uo: any = {}Static
generate_Generate password
Static
get_Get available roles
Static
hashGet bcrypt hash for Password
password string
Static
matches_Static
nonStatic
resetReset password using token
Static
unacceptable_Validate password
Static
valid_Validate email
Static
verifyVerification with token
true if verification passed, error string if not
User