mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-20 04:54:07 +02:00
[#1377] added Authentik OAuth2 provider
Co-authored-by: Marc Singer <ms@pr0.tech>
This commit is contained in:
1 parent
fd97732d4d
commit
6d08a5f36f
41 files changed
+261
-116
No files matched your search
@@ -467,7 +467,7 @@ func (form *RecordUpsert) Validate() error {
|
||||
&form.Username,
|
||||
// require only on update, because on create we fallback to auto generated username
|
||||
validation.When(!form.record.IsNew(), validation.Required),
|
||||
validation.Length(3, 100),
|
||||
validation.Length(3, 150),
|
||||
validation.Match(usernameRegex),
|
||||
validation.By(form.checkUniqueUsername),
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user