Users module. Users are described in detail in Users article.

Methods

getAttributeName (name:String, lang:String):String

Returns user attribute localized name.

Parameters:

name

Attribute string ID.

lang

User language.

Returns:

Attribute localized name. Returns an empty string, if the attribute type is not found.

getUserID (login:String, provider:String):Int

Returns user ID from his login and provider info.

Parameters:

login

User auth login.

provider

User auth provider.

Returns:

User ID, if such user exists in database. 0 otherwise.

userExists (id:Int):Bool

Returns whether the database record for this user exist.

Parameters:

id

User ID.

Returns:

True, if the record exists in database. False otherwise.