跳到主内容

面部识别

Casdoor supports Face ID sign-in using face-api.js. Users register facial data in their account and can sign in by scanning their face on the login page.

Enable Face ID

1. Add Face ID to account items

User ManagementOrganizations → select organization → Account items → add Face ID.

Face ID

2. Let users add facial data

User ManagementUsers → select user → Face Ids. Users can add up to 5 face entries and give each a name.

Face ID

3. Add Face ID to sign-in methods

IdentityApplications → select application → Signin methods → add Face ID.

Face ID

4. Sign in with Face ID

  1. On the login page, choose the Face ID method.
  2. Enter the username and click Sign in with Face ID.
  3. Allow camera access when prompted, then complete face verification.

Face ID Face ID

Demo video: