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

SMTP #3

Open
redcharles opened this issue Jul 17, 2019 · 2 comments
Open

SMTP #3

redcharles opened this issue Jul 17, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@redcharles
Copy link

Need to choose something to handle SMTP request, such as sendgrid or mailchimp. Also need a forgot password function.

@redcharles redcharles added the enhancement New feature or request label Jul 17, 2019
@redcharles
Copy link
Author

redcharles commented Jul 17, 2019

@tyren1995 The forgot password function should be a part of user authentication, you can reference the following files for help setting it up -

/assets/js/auth/auth.js
/assets/php/auth/user_auth.php

Our PHP logic should be handled here.
We should create a new password, and then mail that password out to the user but only set the password if the user, uses it to login. This will require a new field in the database, one to store the old password and one to store the new password.

A little hint/some advice on how to do this
Create a new page that is targeted towards the first time a user logs in with a new password.
Create a new bit of logic in auth that is focused on that page, in that it should check the new column in the database, and if it matches set the password.

You'll want to use ajax to submit the request, php to send the email, set the temporary password, and confirm the new one.

Remember to add all views to /assets/views/
And your primary file (since we don't have a router right now) to the webroot

@redcharles
Copy link
Author

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

No branches or pull requests

2 participants