Added an testemail

This commit is contained in:
Kevin Veen-Birkenbach 2025-01-16 19:39:45 +01:00
parent c01203e8a1
commit 9095b00cfb

View File

@ -103,24 +103,7 @@ docker compose exec -it application cat /etc/msmtprc
To send a test email: To send a test email:
```bash ```bash
docker compose exec -it application msmtp --account=system_email -t kevin@veen.world docker compose exec -it application msmtp --account=system_email -t test@test.de
```
### Create User 👤
To manually create a user in the database:
```sql
INSERT INTO user (guid, username, email, password, verified, register_date, account_expires_on, account_expired)
VALUES (
UUID(), -- Generates a unique user ID
'newusername', -- Username
'newuser@example.com', -- Email address
MD5('newpassword'), -- Password (use Bcrypt if preferred)
1, -- Verification status (1 = verified)
NOW(), -- Registration date
'0001-01-01 00:00:00', -- Unlimited account duration
0 -- Account is not expired
);
``` ```
## Additional Resources 📖 ## Additional Resources 📖