Handbook
Glossary
User profile editing
Furnace framework
»
Furnace authentication
»
Optional authentication features
Prev:
User profile deactivation
Next:
User password recovery
The
furnace
.
auth
.
features
.
edit-profile
vocabulary implements an authentication feature for user profile editing, allowing users to change some details of their account.
To enable this feature, call the following word on an authentication realm:
allow-edit-profile
( realm -- realm )
To check if profile editing is enabled:
allow-edit-profile?
( -- ? )
This feature adds an
edit-profile
action to the realm, and a link to this action can be inserted in Chloe templates using the following XML snippet:
<t:if t:code="furnace.auth.features.edit-profile:allow-edit-profile?"> <t:button t:action="$realm/edit-profile">Edit profile</t:button> </t:if>