Accounts: Difference between revisions

117 bytes added ,  6 February 2023
m
no edit summary
(Visual editor decimated the template parameters)
Tag: Source edit
mNo edit summary
Tag: Source edit
 
(2 intermediate revisions by the same user not shown)
Line 10: Line 10:


=== Console ===
=== Console ===
To log in via the {{Zdoomwiki|Console}}, use the login command, like such:
To log in via the {{Zdoomwiki|Console}}, use the <tt>login</tt> command, like such:
  login myusername test123
  login myusername test123
You can bind it to a key for easy access.
You can bind it to a key for easy access.
Line 16: Line 16:


== Saving login credentials ==
== Saving login credentials ==
On Windows, you can save your login information to the operating system's secure credential storage, so you don't need to type your username password each time. To do so, open the {{Zdoomwiki|Console}}, and use the login_add command:
On Windows, you can save your <tt>login</tt> information to the operating system's secure credential storage, so you don't need to type your username password each time. To do so, open the {{Zdoomwiki|Console}}, and use the <tt>login_add</tt> command:
  login_add myusername test123
  login_add myusername test123
Then, to log in with myusername, you will only need to type:
Then, to log in with myusername, you will only need to type:
  login myusername
  login myusername
You can also set the default username for the login command, so you can avoid typing your username too:
You can also set the default username for the <tt>login</tt> command, so you can avoid typing your username too:
  login_default_user myusername
  login_default_user myusername
Then you can just use the login command without any parameters to login:
Then you can just use the <tt>login</tt> command without any parameters to log in:
  login
  login


Line 28: Line 28:


* [[Database]], for documentation on programming mods with the database and auth functionality
* [[Database]], for documentation on programming mods with the database and auth functionality
** <tt>[[PlayerIsLoggedIn]]</tt> and <tt>[[GetPlayerAccountName]]</tt>