Company | Newzulu Platform | Developer

Developer Template Documentation v4.12.5.106

Login


Login

/action/v2/login

Authenticate and login the user. Username/password or email/password pair is required.

Supports redirectUrl param of fm:Form component as well as $_REQUEST['redirectUrl'] param to redirect the user after the successful action execution

Supports $_REQUEST['failRedirectUrl'] param to redirect the user upon actions errors

Example

<fm:Form action="/action/v2/login" method="post"> <fm:Form_Username name="user" /> <fm:Form_Password name="password" /> <fm:Form_Custom><button type="submit">Log in</button></fm:Form_Custom> </fm:Form>

Supported params

Name Required Description
user Optional String between 6 and 40 characters long
email Required if user param is not specified String up to 100 characters
password Required String between 6 and 40 characters long
<< 3.4.13 Email Media 3.4.15 Logout >>