feat(core): Add message of the day

This commit is contained in:
smizrahi
2024-01-22 14:34:22 +01:00
parent 0d0eda2698
commit eee50697b0
32 changed files with 1362 additions and 326 deletions
+17
View File
@@ -51,6 +51,7 @@
#import <SOGo/SOGoWebAuthenticator.h>
#import <SOGo/SOGoEmptyAuthenticator.h>
#import <SOGo/SOGoMailer.h>
#import <SOGo/SOGoAdmin.h>
#if defined(MFA_CONFIG)
#include <liboath/oath.h>
@@ -1043,4 +1044,20 @@ static const NSString *kJwtKey = @"jwt";
#endif
}
- (NSString *)motd
{
return [[SOGoAdmin sharedInstance] getMotd];
}
- (NSString *)motdEscaped
{
return [[[SOGoAdmin sharedInstance] getMotd] stringWithoutHTMLInjection: YES];
}
- (BOOL)hasMotd
{
return [[SOGoAdmin sharedInstance] getMotd] && [[[SOGoAdmin sharedInstance] getMotd] length] > 1;
}
@end /* SOGoRootPage */