Skip to content

Commit 9a0f49a

Browse files
Revert the old implementation of DEV-1468
1 parent 2b1d90b commit 9a0f49a

File tree

13 files changed

+89
-435
lines changed

13 files changed

+89
-435
lines changed

docs/specs/event.md

-71
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@
5050
- [identity.oauth.disconnected](#identityoauthdisconnected)
5151
- [identity.biometric.enabled](#identitybiometricenabled)
5252
- [identity.biometric.disabled](#identitybiometricdisabled)
53-
- [password.primary.reset](#passwordprimaryreset)
54-
- [password.primary.changed](#passwordprimarychanged)
55-
- [password.secondary.changed](#passwordsecondarychanged)
56-
- [password.primary.force_changed](#passwordprimaryforce_changed)
57-
- [password.secondary.force_changed](#passwordsecondaryforce_changed)
5853

5954
# Event
6055

@@ -738,69 +733,3 @@ Occurs when biometric login is disabled. It will be triggered only when the user
738733
}
739734
}
740735
```
741-
742-
#### password.primary.reset
743-
744-
Occurs when the user reset their primary password via the forgot password flow.
745-
746-
```json5
747-
{
748-
"payload": {
749-
"user": { /* ... */ }
750-
}
751-
}
752-
```
753-
754-
#### password.primary.changed
755-
756-
Occurs when the user changed their primary password in the settings page.
757-
758-
```json5
759-
{
760-
"payload": {
761-
"user": { /* ... */ }
762-
}
763-
}
764-
```
765-
766-
#### password.secondary.changed
767-
768-
Occurs when the user changed their secondary password in the settings page.
769-
770-
```json5
771-
{
772-
"payload": {
773-
"user": { /* ... */ }
774-
}
775-
}
776-
```
777-
778-
#### password.primary.force_changed
779-
780-
Occurs when the user is forced to change their primary password during login.
781-
782-
`reason`: either `policy` or `expiry`.
783-
784-
```json5
785-
{
786-
"payload": {
787-
"user": { /* ... */ },
788-
"reason": "policy"
789-
}
790-
}
791-
```
792-
793-
#### password.secondary.force_changed
794-
795-
Occurs when the user is forced to change their secondary password during login.
796-
797-
`reason`: either `policy` or `expiry`.
798-
799-
```json5
800-
{
801-
"payload": {
802-
"user": { /* ... */ },
803-
"reason": "policy"
804-
}
805-
}
806-
```

pkg/admin/graphql/audit_log.go

+15-15
Original file line numberDiff line numberDiff line change
@@ -140,21 +140,21 @@ var auditLogActivityType = graphql.NewEnum(graphql.EnumConfig{
140140
"IDENTITY_BIOMETRIC_DISABLED": &graphql.EnumValueConfig{
141141
Value: "identity.biometric.disabled",
142142
},
143-
"PASSWORD_PRIMARY_RESET": &graphql.EnumValueConfig{
144-
Value: "password.primary.reset",
145-
},
146-
"PASSWORD_PRIMARY_CHANGED": &graphql.EnumValueConfig{
147-
Value: "password.primary.changed",
148-
},
149-
"PASSWORD_SECONDARY_CHANGED": &graphql.EnumValueConfig{
150-
Value: "password.secondary.changed",
151-
},
152-
"PASSWORD_PRIMARY_FORCE_CHANGED": &graphql.EnumValueConfig{
153-
Value: "password.primary.force_changed",
154-
},
155-
"PASSWORD_SECONDARY_FORCE_CHANGED": &graphql.EnumValueConfig{
156-
Value: "password.secondary.force_changed",
157-
},
143+
// "PASSWORD_PRIMARY_RESET": &graphql.EnumValueConfig{
144+
// Value: "password.primary.reset",
145+
// },
146+
// "PASSWORD_PRIMARY_CHANGED": &graphql.EnumValueConfig{
147+
// Value: "password.primary.changed",
148+
// },
149+
// "PASSWORD_SECONDARY_CHANGED": &graphql.EnumValueConfig{
150+
// Value: "password.secondary.changed",
151+
// },
152+
// "PASSWORD_PRIMARY_FORCE_CHANGED": &graphql.EnumValueConfig{
153+
// Value: "password.primary.force_changed",
154+
// },
155+
// "PASSWORD_SECONDARY_FORCE_CHANGED": &graphql.EnumValueConfig{
156+
// Value: "password.secondary.force_changed",
157+
// },
158158
"EMAIL_SENT": &graphql.EnumValueConfig{
159159
Value: "email.sent",
160160
},

pkg/api/event/nonblocking/password_primary_changed.go

-48
This file was deleted.

pkg/api/event/nonblocking/password_primary_force_changed.go

-50
This file was deleted.

pkg/api/event/nonblocking/password_primary_reset.go

-48
This file was deleted.

pkg/api/event/nonblocking/password_secondary_changed.go

-48
This file was deleted.

pkg/api/event/nonblocking/password_secondary_force_changed.go

-50
This file was deleted.

0 commit comments

Comments
 (0)