auth.login ========== Authenticate session using username and password. Deprecated and removed in v27. Use :doc:`auth.login_ex ` with ``mechanism="PASSWORD_PLAIN"`` (and :doc:`auth.login_ex_continue ` with ``mechanism="OTP_TOKEN"`` for the second factor). *DEPRECATED: this method is scheduled to be removed in v27.* .. raw:: html
Type: object

Type: array
No Additional Items

Tuple Validation

Parameter 1: username

username

Type: string

Username for authentication.

Parameter 2: password

password

Type: string

Password for authentication.

Parameter 3: otp_token

otp_token

Default: ""

One-time password token for two-factor authentication or null.

Type: string
Type: null

Result

Type: boolean

Returns true if login was successful, false otherwise.



*Required roles:*