mevdschee / mevdschee/php-crud-api

Add email verification and password reset to dbAuth

Open
#870 13 comments 2 reactions 1 assignee View on GitHub

@mevdschee is already working on this.

Since Mar 29, 2022.

enhancement
Dominant language
PHP
Stars
3.7k
Forks
1k
Avg merge
1h 55m
Merged PRs (30d)
7

Description

Hi,
in the dbAuth middleware, do you think it would be possible to add the email verification and password reset process?
Before a user is effectively registered, he must click on the confirmation email sent through the signup.
Similarly, when he needs to reset the password, he receives an email with the reset link to set a new password.

This would not only complete the dbAuth middleware, but would also allow to grant the registration process to specific email domains (eg, only @this.org and @that.org users can register).

The config would need the following parameters:

  • smtp server and port (to send both verification and password reset emails)
  • email address column (like the username column parameter)
  • default template for the email subject and body

Unfortunately I have very little PHP knowledge to do it on my own.
I hope it's doable. Otherwise, I would really appreciate any suggestion on how to achieve this, even with a different tiny library, integrated with php-crud-api's registration and session management.

Cheers,
Fausto

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.