mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 16:35:10 +00:00
feat(core): Add message of the day
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user