mirror of
https://github.com/flarum/framework.git
synced 2025-05-26 00:29:59 +08:00
Don't hide login modal; wait for page to refresh
This commit is contained in:
@ -117,10 +117,7 @@ export default class LogInModal extends Modal {
|
|||||||
const password = this.password();
|
const password = this.password();
|
||||||
|
|
||||||
app.session.login(email, password).then(
|
app.session.login(email, password).then(
|
||||||
() => {
|
null,
|
||||||
this.hide();
|
|
||||||
if (this.props.onlogin) this.props.onlogin();
|
|
||||||
},
|
|
||||||
response => {
|
response => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user