Commit c7b17e0c authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Change registration URL to /auth/register

This way the comments server will decide how and where the registration is
performed.
parent 81c1c4ec
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -152,6 +152,14 @@ Ext.define('Docs.Auth', {
     */
    isModerator: function() {
        return this.getUser() && this.getUser().mod;
    },

    /**
     * Returns the URL that takes user to registration form.
     * @return {String}
     */
    getRegistrationUrl: function() {
        return Docs.data.commentsUrl + "/register";
    }

});
+3 −2
Original line number Diff line number Diff line
@@ -4,7 +4,8 @@
Ext.define('Docs.view.auth.BaseForm', {
    extend: 'Ext.Component',
    requires: [
        'Docs.Tip'
        'Docs.Tip',
        'Docs.Auth'
    ],

    /**
@@ -30,7 +31,7 @@ Ext.define('Docs.view.auth.BaseForm', {
                '<label><input type="checkbox" name="remember" /> Remember Me</label>',
                '<input class="submit" type="submit" value="Sign in" />',
                ' or ',
                '<a class="register" href="http://www.sencha.com/forum/register.php" target="_blank">Register</a>',
                '<a class="register" href="' + Docs.Auth.getRegistrationUrl() + '" target="_blank">Register</a>',
            '</form>'
        ].join("");
    },