-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Registration & Reset password #68
base: master
Are you sure you want to change the base?
Conversation
ordavidil
commented
Jun 18, 2015
Adding ".idea/" to gitignore.
Can you provide a gif that shows the flow please. |
} | ||
} | ||
}) | ||
.state('sign-up', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
camelCase (signup
, verifyEmail
)
} | ||
|
||
/** | ||
* Checking the site settings if a visitor allow to register. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Determine if user registration is allowed for ...
.controller('LoginCtrl', function ($scope, Auth, $state) { | ||
.controller('LoginCtrl', function ($scope, Auth, $state, Account, accessToken) { | ||
|
||
// Try to verify the email when access token is being passed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Set the access_token using the
Auth.setAccessToken($stateParams.accessToken)
- Please move this to the
state
resolve method and return the result ofAccount.verifyEmail()
.
// Try to verify the email when access token is being passed.
if ($state.current.name == 'verifyEmail' && accessToken) {
Account.verifyEmail(accessToken).then(function () {
$scope.emailVerified = true;
});
}
@ordavidil the changes looks good, Please find out why the test is failing and fix it. |
@amitaibu |