fix(core): don't show link if SOGoURLCreateAccount is set but empty

This commit is contained in:
Hivert Quentin
2025-02-26 10:40:43 +01:00
parent d15f0ee804
commit 69116d8eb7

View File

@@ -1099,8 +1099,9 @@ static const NSString *kJwtKey = @"jwt";
- (BOOL) hasUrlCreateAccount
{
return ([[SOGoSystemDefaults sharedSystemDefaults]
urlCreateAccount] != nil);
NSString *url;
url = [[SOGoSystemDefaults sharedSystemDefaults] urlCreateAccount];
return (url != nil && [url length] > 0);
}
- (NSString *) urlCreateAccount