mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-12 15:27:12 +00:00
fix(password recovery): Add default from mail parameter
This commit is contained in:
1 parent
153f444c3f
commit
26b14671f5
4 files changed
+27
-5
No files matched your search
@@ -99,6 +99,8 @@
|
||||
|
||||
- (BOOL) createIdentitiesDisabled;
|
||||
|
||||
- (NSString *) passwordRecoveryFrom;
|
||||
|
||||
@end
|
||||
|
||||
#endif /* SOGODOMAINDEFAULTS_H */
|
||||
@@ -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
|
||||
Reference in new issue
Block a user