mirror of
https://github.com/docmost/docmost.git
synced 2025-11-19 12:41:13 +10:00
feat(backend): forgot password (#250)
* feat(backend): forgot password * feat: apply feedback from code review * chore(auth): validate the minimum length of 'newPassword' * chore(auth): make token has an expiry of 1 hour * chore: rename all occurrences of 'code' to 'token' * chore(backend): provide value on nanoIdGen method
This commit is contained in:
@ -27,11 +27,14 @@ export const mailDriverConfigProvider = {
|
||||
switch (driver) {
|
||||
case MailOption.SMTP:
|
||||
let auth = undefined;
|
||||
if (environmentService.getSmtpUsername() && environmentService.getSmtpPassword()) {
|
||||
if (
|
||||
environmentService.getSmtpUsername() &&
|
||||
environmentService.getSmtpPassword()
|
||||
) {
|
||||
auth = {
|
||||
user: environmentService.getSmtpUsername(),
|
||||
pass: environmentService.getSmtpPassword(),
|
||||
};
|
||||
user: environmentService.getSmtpUsername(),
|
||||
pass: environmentService.getSmtpPassword(),
|
||||
};
|
||||
}
|
||||
return {
|
||||
driver,
|
||||
|
||||
Reference in New Issue
Block a user