面部识别
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 Management → Organizations → select organization → Account items → add Face ID.

2. Let users add facial data
User Management → Users → select user → Face Ids. Users can add up to 5 face entries and give each a name.

3. Add Face ID to sign-in methods
Identity → Applications → select application → Signin methods → add Face ID.

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

Demo video: