mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 07:03:35 +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();
|
||||
|
||||
app.session.login(email, password).then(
|
||||
() => {
|
||||
this.hide();
|
||||
if (this.props.onlogin) this.props.onlogin();
|
||||
},
|
||||
null,
|
||||
response => {
|
||||
this.loading = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user