login

Logs the user in.

static if(isWeb)
void
login
(
HttpClient client
,,)

Parameters

client HttpClient

The client.

loginTime long

The time the user can be logged in. (In minutes)

role Role

The role to login as. (If the role is null then the session won't have a role, causing every request to be authenticated.)

Meta