...
Also accepts a parameter error_msg
to use a custom message when logging in does not work, for example when the wrong credentials are used. Message is returned in request.flash object.
Example:
Code Block |
---|
{% authentication_login_form "dealers", error_msg: "custom error message", redirect_to: "/portal-page" %} {% authentication_field "email", class: "form-field" %} {% authentication_field "password", class: "form-field" %} <input type="submit" value="Login!"> {% endauthentication_login_form %} |
...