m_identity
Usernames and other user identities.
The m_identity model manages user identities. It checks and stores salted passwords and other user identities.
Note that an user does not have to be a person, in Zotonic it can be anything.
At the moment the m_identity primarily stores username and password combinations. Later it will also store OAuth and OpenID identities.
The following m_identity model properties are available in templates:
| Property | Description | Example value |
| is_user | Check if a page id is an user. Return a bool. Usage: m.identity[page_id].is_user | true |
username | Fetch the username, if any, of an user. Returns a binary or undefined. Usage: m.identity[page_id].username | <<"admin">> |
This page is part of the Zotonic documentation, which is licensed under the Apache License 2.0.