mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
make the code prettier
This commit is contained in:
parent
3e232412e3
commit
b9261588f9
@ -41,7 +41,8 @@ export default Ember.Controller.extend(PasswordValidation, {
|
|||||||
second_factor_token: this.get("secondFactor"),
|
second_factor_token: this.get("secondFactor"),
|
||||||
second_factor_method: this.get("secondFactorMethod")
|
second_factor_method: this.get("secondFactorMethod")
|
||||||
}
|
}
|
||||||
}).then(result => {
|
})
|
||||||
|
.then(result => {
|
||||||
if (result.success) {
|
if (result.success) {
|
||||||
this.set("successMessage", result.message);
|
this.set("successMessage", result.message);
|
||||||
this.set("redirectTo", result.redirect_to);
|
this.set("redirectTo", result.redirect_to);
|
||||||
|
Loading…
Reference in New Issue
Block a user