mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 09:09:01 +00:00
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:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user