feat(core): Add new SOGoURLCreateAccount option to add a create account link below login form

This commit is contained in:
smizrahi
2024-10-22 16:03:50 +02:00
parent 253d14cfce
commit f2ba6870d5
8 changed files with 35 additions and 0 deletions
@@ -6,6 +6,7 @@
"Domain" = "Domain";
"Remember username" = "Remember username";
"Connect" = "Connect";
"Create an account" = "Create an account";
/* Appears while authentication is in progress */
"Authenticating" = "Authenticating";
@@ -6,6 +6,7 @@
"Domain" = "Domaine";
"Remember username" = "Se souvenir de moi";
"Connect" = "Connexion";
"Create an account" = "Créer un compte";
/* Appears while authentication is in progress */
"Authenticating" = "Authentification en cours";
+12
View File
@@ -1060,4 +1060,16 @@ static const NSString *kJwtKey = @"jwt";
return [[SOGoAdmin sharedInstance] getMotd] && [[[SOGoAdmin sharedInstance] getMotd] length] > 1;
}
- (BOOL) hasUrlCreateAccount
{
return ([[SOGoSystemDefaults sharedSystemDefaults]
urlCreateAccount] != nil);
}
- (NSString *) urlCreateAccount
{
return [[SOGoSystemDefaults sharedSystemDefaults]
urlCreateAccount];
}
@end /* SOGoRootPage */