Api/minux.login(): Difference between revisions

From Minux Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
attempts to log in to either local or network auth, depending on system settings.
[[Api/minux|minux api]] that attempts to log in to either local or network auth, depending on system settings.


doesn't provide output in a return string, it sets the proper login variabels for other programs to use.
doesn't provide output in a return string, it sets the proper login variabels for other programs to use.

Latest revision as of 05:05, 24 September 2024

minux api that attempts to log in to either local or network auth, depending on system settings.

doesn't provide output in a return string, it sets the proper login variabels for other programs to use.

doesn't restart the system after a failed login trough this method, but won't allow most actions without these values set.


useage:

minux.login(username,password)


arguments:

username - the username you want to log in as

password - the password for that username


output:

_G.validlogin =.bool. True = Pass accepted.

_G.login = string = the username

_G.Masterpass = string = password

_G.isadmin = bool, true = admin mode.

_G.owner = the user this system belongs to, network only

_G.ownergroup = the group that has user access to this system, network only