fix(password recovery): Add default from mail parameter

This commit is contained in:
smizrahi
2024-01-09 10:28:41 +01:00
parent 153f444c3f
commit 26b14671f5
4 changed files with 27 additions and 5 deletions
+12
View File
@@ -448,4 +448,16 @@
return [self boolForKey: @"SOGoCreateIdentitiesDisabled"];
}
- (NSString *) passwordRecoveryFrom
{
NSString *emailFrom;
emailFrom = [self stringForKey: @"SOGoPasswordRecoveryFrom"];
if (!emailFrom)
emailFrom = @"noreply@domain.com"; // Default email from when no domain set
return emailFrom;
}
@end