mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-23 14:30:26 +02:00
updated the rules when linking OAuth2 by email
This commit is contained in:
1 parent
af9cf33553
commit
58ace5d5e7
53 files changed
+637
-351
No files matched your search
@@ -47,6 +47,7 @@ const (
|
||||
FieldNamePasswordHash string = "passwordHash"
|
||||
FieldNameLastResetSentAt string = "lastResetSentAt"
|
||||
FieldNameLastVerificationSentAt string = "lastVerificationSentAt"
|
||||
FieldNameLastLoginAlertSentAt string = "lastLoginAlertSentAt"
|
||||
)
|
||||
|
||||
// BaseModelFieldNames returns the field names that all models have (id, created, updated).
|
||||
@@ -78,6 +79,7 @@ func AuthFieldNames() []string {
|
||||
FieldNamePasswordHash,
|
||||
FieldNameLastResetSentAt,
|
||||
FieldNameLastVerificationSentAt,
|
||||
FieldNameLastLoginAlertSentAt,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ func TestSystemFieldNames(t *testing.T) {
|
||||
|
||||
func TestAuthFieldNames(t *testing.T) {
|
||||
result := schema.AuthFieldNames()
|
||||
expected := 8
|
||||
expected := 9
|
||||
|
||||
if len(result) != expected {
|
||||
t.Fatalf("Expected %d auth field names, got %d (%v)", expected, len(result), result)
|
||||
|
||||
Reference in new issue
Block a user