Feature disable password login #378
@@ -1763,7 +1763,7 @@ export async function updateRegistrationAllowed(
|
|||||||
|
|
||||||
export async function updatePasswordLoginAllowed(
|
export async function updatePasswordLoginAllowed(
|
||||||
allowed: boolean,
|
allowed: boolean,
|
||||||
): Promise<any> {
|
): Promise<{ allowed: boolean }> {
|
||||||
try {
|
try {
|
||||||
const response = await authApi.patch("/users/password-login-allowed", {
|
const response = await authApi.patch("/users/password-login-allowed", {
|
||||||
allowed,
|
allowed,
|
||||||
|
|||||||
Reference in New Issue
Block a user