Skript: 2FA für Mitarbeiter anzeigen, einschalten, abschalten
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0555a2274d
commit
acc86c267b
4 files changed
+161
No files matched your search
@@ -132,6 +132,17 @@ export async function updateAppwriteUserLabels(userId, labels) {
|
||||
})
|
||||
}
|
||||
|
||||
export async function updateAppwriteUserMfa(userId, mfa) {
|
||||
return adminFetch(`/users/${userId}/mfa`, { method: 'PATCH', body: { mfa: Boolean(mfa) } })
|
||||
}
|
||||
|
||||
export async function updateAppwriteUserEmailVerification(userId, emailVerification) {
|
||||
return adminFetch(`/users/${userId}/verification`, {
|
||||
method: 'PATCH',
|
||||
body: { emailVerification: Boolean(emailVerification) },
|
||||
})
|
||||
}
|
||||
|
||||
export async function deleteAppwriteUser(userId) {
|
||||
return adminFetch(`/users/${userId}`, { method: 'DELETE' })
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user