Skip to content
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

Open
wants to merge 46 commits into
base: master
Choose a base branch
from

Conversation

ordavidil
Copy link
Contributor

selection_314

selection_315

selection_324

selection_325

@ordavidil ordavidil changed the title WIP - Reset password Reset password Jun 22, 2015
@amitaibu
Copy link
Member

Can you provide a gif that shows the flow please.

@ordavidil
Copy link
Contributor Author

Sure,

reset_password

@ordavidil
Copy link
Contributor Author

selection_326

@ordavidil
Copy link
Contributor Author

selection_329

@ordavidil
Copy link
Contributor Author

The registration flow.

registration

@ordavidil ordavidil changed the title Reset password Registration & Reset password Jun 25, 2015
}
}
})
.state('sign-up', {
Copy link
Member

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.
Copy link
Member

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.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ordavidil

  • Set the access_token using the Auth.setAccessToken($stateParams.accessToken)
  • Please move this to thestate resolve method and return the result of Account.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;
 });
 }

@YaronMiro
Copy link

@ordavidil the changes looks good, Please find out why the test is failing and fix it.

@ordavidil
Copy link
Contributor Author

@amitaibu
Ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants