First draft of backup codes. only created when the command is called. no command yet to expire/review codes.

Also added a few safeguards against excessively long user input.

Started on ability to redirect to auth subdomain (incomplete).
This commit is contained in:
2026-05-21 12:15:35 -04:00
parent 6ed1ab26f1
commit 38124ef66c
12 changed files with 242 additions and 26 deletions
+1 -1
View File
@@ -8,6 +8,6 @@ trait StringTrait {
private const KEY_REGEX = '/[^A-Za-z0-9_.]+/';
public function makeCacheKey(string $name): string {
return preg_replace(static::KEY_REGEX, '_', $name);
return mb_substr(preg_replace(static::KEY_REGEX, '_', $name), 0, 128);
}
}