Skip to content

Commit 63facf5

Browse files
committed
route to confirm user email token displays success when token found, confirmed, deleted & displays error message when token not found
1 parent c94a1e4 commit 63facf5

File tree

5 files changed

+3
-9
lines changed

5 files changed

+3
-9
lines changed

app/routes/confirm.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ export default Ember.Route.extend({
1717
if (error.payload) {
1818
console.log("finding error in payload: " + error.payload.errors[0].detail);
1919
this.get('flashMessages').queue(`Error in email confirmation: ${error.payload.errors[0].detail}`);
20-
return;
20+
return this.replaceWith('index');
2121
} else {
2222
this.get('flashMessages').queue(`Unknown error in email confirmation`);
23-
return;
23+
return this.replaceWith('index');
2424
}
2525
});
2626
}

app/templates/confirm.hbs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<h1>Thanks for confirming</h1>

app/templates/confirm/error.hbs

-1
This file was deleted.

app/templates/confirm/index.hbs

-1
This file was deleted.

app/templates/error.hbs

-5
This file was deleted.

0 commit comments

Comments
 (0)