mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-30 19:12:16 +00:00
feat(users/v2): return prompt information (#9255)
# Which Problems Are Solved Add the ability to update the timestamp when MFA initialization was last skipped. Get User By ID now also returns the timestamps when MFA setup was last skipped. # How the Problems Are Solved - Add a `HumanMFAInitSkipped` method to the `users/v2` API. - MFA skipped was already projected in the `auth.users3` table. In this PR the same column is added to the users projection. Event handling is kept the same as in the `UserView`: <details> https://github.com/zitadel/zitadel/blob/62804ca45f804322e54831aeb2c9be9128ae60ca/internal/user/repository/view/model/user.go#L243-L377 </details> # Additional Changes - none # Additional Context - Closes https://github.com/zitadel/zitadel/issues/9197
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
select u.id as user_id, u.resource_owner, u.username, m.access_token_type, k.public_key
|
||||
from projections.authn_keys2 k
|
||||
join projections.users13 u
|
||||
join projections.users14 u
|
||||
on k.instance_id = u.instance_id
|
||||
and k.identifier = u.id
|
||||
join projections.users13_machines m
|
||||
join projections.users14_machines m
|
||||
on u.instance_id = m.instance_id
|
||||
and u.id = m.user_id
|
||||
where k.instance_id = $1
|
||||
|
||||
Reference in New Issue
Block a user