make the code prettier

This commit is contained in:
Régis Hanol 2018-10-22 19:07:41 +02:00
parent 3e232412e3
commit b9261588f9

View File

@ -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);