User Tools

Site Tools


user_class

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
user_class [2019/12/19 22:00] sahluser_class [2020/02/12 21:18] (current) sahl
Line 3: Line 3:
 The user class represents users in an instance and can be used for logging in, and keeping track of users. It is used along with [[accesstoken_class|Accesstoken]] which keeps track on valid access and [[userproperty_class|UserProperty]] which can easily store information related to a given user. The user class represents users in an instance and can be used for logging in, and keeping track of users. It is used along with [[accesstoken_class|Accesstoken]] which keeps track on valid access and [[userproperty_class|UserProperty]] which can easily store information related to a given user.
  
-The only thing special with the User class is the ''tryLogin'' function which will check for a user with the given username and password in the database, and if one exist, it will establish a valid session using [[accesstoken_class|Accesstoken]] and return true.+The only thing special with the User class is the ''tryLogin'' function which will check for a user with the given username and password in the database, and if one exist, it will return an [[accesstoken_class|Accesstoken]] which is valid for entering the instance. 
 + 
 +See the [[Instance class]] for complete login instructions.
user_class.1576792843.txt.gz · Last modified: 2019/12/19 22:00 by sahl

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki