Rename login and register urls
This commit is contained in:
parent
ad0e457486
commit
61ed55dbaa
@ -839,7 +839,11 @@
|
|||||||
affiliations = [affiliations];
|
affiliations = [affiliations];
|
||||||
}
|
}
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const promises = _.map(affiliations, _.partial(this.requestMemberList, this.model.get('jid')));
|
const promises = _.map(
|
||||||
|
affiliations,
|
||||||
|
_.partial(this.requestMemberList, this.model.get('jid'))
|
||||||
|
);
|
||||||
|
|
||||||
Promise.all(promises).then(
|
Promise.all(promises).then(
|
||||||
_.flow(this.marshallAffiliationIQs.bind(this), resolve),
|
_.flow(this.marshallAffiliationIQs.bind(this), resolve),
|
||||||
_.flow(this.marshallAffiliationIQs.bind(this), resolve)
|
_.flow(this.marshallAffiliationIQs.bind(this), resolve)
|
||||||
|
@ -147,8 +147,8 @@
|
|||||||
|
|
||||||
const RegistrationRouter = Backbone.Router.extend({
|
const RegistrationRouter = Backbone.Router.extend({
|
||||||
initialize () {
|
initialize () {
|
||||||
this.route('converse-login', _.partial(this.setActiveForm, 'login'));
|
this.route('converse/login', _.partial(this.setActiveForm, 'login'));
|
||||||
this.route('converse-register', _.partial(this.setActiveForm, 'register'));
|
this.route('converse/register', _.partial(this.setActiveForm, 'register'));
|
||||||
},
|
},
|
||||||
setActiveForm (value) {
|
setActiveForm (value) {
|
||||||
_converse.api.waitUntil('controlboxInitialized').then(() => {
|
_converse.api.waitUntil('controlboxInitialized').then(() => {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div class="switch-form">
|
<div class="switch-form">
|
||||||
<p>{{{ __("Don't have a chat account?") }}}</p>
|
<p>{{{ __("Don't have a chat account?") }}}</p>
|
||||||
<p><a class="register-account toggle-register-login" href="#converse-register">{{{__("Create an account")}}}</a></p>
|
<p><a class="register-account toggle-register-login" href="#converse/register">{{{__("Create an account")}}}</a></p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -17,6 +17,6 @@
|
|||||||
<div class="switch-form">
|
<div class="switch-form">
|
||||||
<p>{{{ __("Already have a chat account?") }}}</p>
|
<p>{{{ __("Already have a chat account?") }}}</p>
|
||||||
<p>
|
<p>
|
||||||
<a class="login-here toggle-register-login" href="#converse-login">{{{__("Log in here")}}}</a>
|
<a class="login-here toggle-register-login" href="#converse/login">{{{__("Log in here")}}}</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user