new component_()
An "authentication" component for a GeoMapFish application. With the
use of the "authentication" service, it features a complete interface
for the user to be able to login, logout, change or reset his or her
password. The gmfUser
angular value is also used to keep track of
the user information. When empty, that means that the user isn't connected
yet.
While not logged in, the "login" form is shown, which allows the user to either log in or ask for a password reset.
Once logged in, the "logout" form is shown, which allows the user to either log out or change his or her password.
Example:
<gmf-authentication
gmf-authentication-info-message="mainCtrl.loginInfoMessage"
gmf-authentication-allow-password-change="::true">
</gmf-authentication>
HTML attributes:
Name | Type | Description |
---|---|---|
gmf-authentication-allow-password-reset |
boolean | Whether to show the password forgotten link. Default to true. |
gmf-authentication-allow-password-change |
boolean | function | Whether to show the change password button. Default to true. You can also specify a gmfx.PasswordValidator Object to add constraint on user's new password. |
gmf-authentication-password-validator |
gmfx.PasswordValidator | A gmfx.PasswordValidator Object to add constraint on user's new password. The gmf-authentication-allow-password-change. To use it you must also allow the user to change its password. |
gmf-authentication-force-password-change |
boolean | Force the user to change its password. Default to false. If you set it to true, you should also allow the user to change its password. Don't add this option alone, use it in a dedicated authentication component, in a ngeo-modal, directly in your index.html (see example 2.) |
gmf-authentication-info-message |
string | Message to show above the authentication form.
Example 2:
{{'You must change your password' | translate}} |