auth_email 0.5.1
auth_email: ^0.5.1 copied to clipboard
This is an easy way to authenticate user email with OTP using PHP as a backend in your own server.
0.5.1 #
- Update Server to
v0.1.1: configuration splits into a trackedconfig.sample.phptemplate plus a gitignoredconfig.phpholding secrets. Copy the sample and fill in your values. - Ship deny-by-default: the sample's
$ALLOWED_APPSis empty and the example app entry is a comment only. Requires Serverv0.1.1or later. - Missing
config.phpfails closed withmisconfiguredinstead of a PHP fatal; a non-array$ALLOWED_APPSis treated as empty.
0.5.0 #
- [BREAKING CHANGE]: Client sends the server key via the
X-Server-Keyheader instead of the URL query, so the key stays out of access logs, history, and referers. Requires Serverv0.1.0or later. - Update Server to
v0.1.0: acceptsX-Server-Keyheader withserverKeyquery fallback for older clients, compares keys in constant time, and always returns JSON with aContent-Type: application/jsonheader. - Harden OTP generation on the server:
random_int-based OTP (preserves leading zeros),otpLengthvalidated and clamped to 4-10, and every failure path returns JSON. - Update PHPMailer to 7.1.1 and slim the bundle (SMTP-only: POP3, OAuth, languages, and docs removed).
- Support
{email}placeholder in the email body alongside{appName}and{otp}. - Exclude the PHP server from the published Dart package via
.pubignore; refresh.gitignore.
0.4.0 #
- Encrypt the received data using SHA256 instead of the raw OTP.
- Update PHPMailer to 6.10.0.
- Update the example.
- [BREADKING CHANGE]: Update Server to v0.0.5.
0.3.0 #
- Update PHPMailer to 6.9.1.
- Update Server to
v0.0.4. - Improve config.php comments.
- Update README.
0.2.3 #
- Update homepage URL.
- Update comments.
0.2.2 #
- Check response status code from http.
- Update example api.
0.2.0 #
- Change sdk version to
>=2.18.0 <4.0.0. - Bump http version to
1.0.0.
0.1.0+3 #
- Update PHP Server to
v0.0.3: Improve body TYPO.
0.1.0+2 #
- Improve README.
0.1.0+1 #
- [BREAKING CHANGE] Update PHP Server to
v0.0.2 - Update PHPMailer to 6.7
- Re-add
server_phpto this project - Support changing email subject
- Update README
0.0.5 #
- Re-added test server.
0.0.4 #
- Debug text is now more clearly.
- Add library header.
- Upgrade dependencies.
0.0.3 #
- Temporary remove test server.
0.0.2 #
- Bring server_php to separated project.
- Update README.
0.0.1+2 #
- Update download URL for
php_serverin README.
0.0.1+1 #
- First release.