Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
Add support for idSite email verification
Browse files Browse the repository at this point in the history
  • Loading branch information
Luka Skukan committed Feb 7, 2017
1 parent 280cffd commit 94997e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/config.yml
Expand Up @@ -207,6 +207,7 @@ web:
loginUri: ""
forgotUri: "/#/forgot"
registerUri: "/#/register"
verifyUri: "/#/verify"

# Social login configuration. This defines the callback URIs for OAuth
# flows, and the scope that is requested of each provider. Some providers
Expand Down
8 changes: 6 additions & 2 deletions lib/stormpath.js
Expand Up @@ -210,8 +210,12 @@ module.exports.init = function (app, opts) {
}

if (web.verifyEmail.enabled) {
addGetRoute(web.verifyEmail.uri, controllers.verifyEmail);
addPostRoute(web.verifyEmail.uri, controllers.verifyEmail);
if (web.idSite.enabled) {
addGetRoute(web.verifyEmail.uri, controllers.idSiteRedirect({ path: web.idSite.verifyUri }));
} else {
addGetRoute(web.verifyEmail.uri, controllers.verifyEmail);
addPostRoute(web.verifyEmail.uri, controllers.verifyEmail);
}
}

if (web.me.enabled) {
Expand Down

0 comments on commit 94997e7

Please sign in to comment.