Fix identity provider gaps: a required provider is decided before any password or mail password is checked and the sign-in page says the same whatever was typed, account or not; required beats IMAP on the same domain; after five wrong passwords for an address in ten minutes its mail server isn't asked; Google signs in only Workspace accounts and Nextcloud has to say the address is verified; client secrets are sealed with the install key, with RMM's sealing moved to shared secretSeal and secretOpen; an IMAP server is tried when saved or turned on and Required waits for a first sign-in; joining, Forgot password, password links and welcome emails follow mail-password and required domains; Turn Off says who goes back to a password; 26.12.3 changelog entries

This commit is contained in:
johnnyq
2026-11-30 01:36:20 -05:00
parent 8ce7ad0789
commit adbd8866c2
18 changed files with 499 additions and 142 deletions

View File

@@ -654,8 +654,9 @@ function portalContactInvite($contact_id, $method, $by) {
if (!$contact) {
return ['ok' => false, 'error' => "That person isn't here", 'emailed' => false];
}
if (!isset(portalSignInMethods($contact['contact_email'])[$method])) {
$method = 'local';
$methods = portalSignInMethods($contact['contact_email']);
if (!isset($methods[$method])) {
$method = array_key_first($methods);
}
$name = (string) $contact['contact_name'];
$email = trim((string) $contact['contact_email']);