<?xml version="1.0" encoding="UTF-8"?>
<ajxp_plugin id="gui.user" enabled="always" description="CONF_MESSAGE[User access point]" label="CONF_MESSAGE[User access point]"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">

    <client_settings>
        <resources>
            <js className="UserGuiController" file="plugins/gui.user/class.UserGuiController.js" autoload="false"/>
            <i18n namespace="gui.user" path="plugins/gui.user/i18n"/>
        </resources>
    </client_settings>

    <class_definition classname="Pydio\Gui\UserGuiController" filename="plugins/gui.user/UserGuiController.php"/>

    <registry_contributions>
        <actions>
            <action name="user_access_point" skipSecureToken="true">
                <processing>
                    <serverCallback methodName="processUserAccessPoint"/>
                </processing>
            </action>
            <action name="reset-password-ask">
                <gui iconClass="icon-terminal" text="gui.user.1" title="gui.user.2">
                    <context dir="true" recycle="true" selection="false"/>
                </gui>
                <processing>
                    <clientCallback module="AuthfrontCoreActions.ResetPasswordRequire.open"/>
                    <serverCallback methodName="processUserAccessPoint"/>
                </processing>
            </action>
            <action name="reset-password">
                <gui iconClass="icon-terminal" text="gui.user.1" title="gui.user.2">
                    <context dir="true" recycle="true" selection="false"/>
                </gui>
                <processing>
                    <clientCallback module="AuthfrontCoreActions.ResetPasswordDialog.open"/>
                    <serverCallback methodName="processUserAccessPoint"/>
                </processing>
            </action>
        </actions>
    </registry_contributions>

    <dependencies>
        <activePlugin pluginName="gui.ajax|gui.mobile|gui.ios|core.auth"/>
    </dependencies>

</ajxp_plugin>
