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

Implement login & logout functionality #3

Open
4 of 22 tasks
edigu opened this issue Jul 16, 2015 · 0 comments
Open
4 of 22 tasks

Implement login & logout functionality #3

edigu opened this issue Jul 16, 2015 · 0 comments

Comments

@edigu
Copy link
Collaborator

edigu commented Jul 16, 2015

Implement a login, & logout functionality while following best-practices and document it.

  • Login
  • Logout
  • Forgot password (Password reset)
  • Registration
  • Change password (for logged-in users)
  • Change email address (for logged-in users, requires confirmation process for new email address)

Forms, Fieldsets

  • Create a UserFieldset and implement InputFilterProviderInterface inside.
  • Create a simple registration form.
  • Create a simple login form.
  • Demonstrate captcha usage on login form.
  • Utilize DoctrineObject hydrator.

Service Layer

  • Create a RegistrationService with following public interfaces:
    • createUser(array $data)
    • updateUserById($userId, $data)
    • login($email, $password, $rememberMe = false)
    • logout()
  • Sending emails to reset password requires email service provider. Think about it.
  • Create an AuthenticationService class, properly utilize zend-authentication library.
  • Authentication service should support different auth adapters by configuration.
  • Create a UserService with getUserById($id) and getUserByEmailAddress($email) public interfaces.

    Other

  • Handle sessions properly
  • Think about future improvements (for example signing-in by facebook, google accounts..)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant