</div>);
});
+App.page('/confirm', false, function(context) {
+ var token = qs.parse(context.querystring).token;
+
+ if (token === undefined) {
+ App.go('/');
+ return;
+ }
+
+ Api.Call(
+ 'CONFIRM_EMAIL',
+ {'token': token},
+ function(err, status, data) {
+ if (err) {
+ console.error(err, data);
+ }
+
+ App.go('/me');
+ }
+ );
+});
+
App.page('/signout', true, function(context) {
cookies.removeItem('jwt');
App.mount(<div>
<div className="row">
<div className="box offset-3 col-6 text-center">
- <p>Please be patient, you account is being confirmed...</p>
- <p><a href="/me"><u>Refresh</u></a></p>
+ <p>An email has now been sent to your email address.</p>
+ <p>Please click the "Confirm your account" button to validate your email.</p>
</div>
</div>
</div>);