mirror of
https://github.com/flarum/framework.git
synced 2025-01-07 19:13:37 +08:00
Don't hide login modal; wait for page to refresh
This commit is contained in:
parent
ed234db09d
commit
64732b8488
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user