Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module adds face recognition for user login and registration in Drupal. It securely stores face data as encrypted numeric embeddings rather than photos, allowing users to log in or sign up using their faces.

Provides optional face recognition based login and registration for Drupal 11.
Face descriptors are encrypted at rest with AES-256-CBC. No photos are ever
stored — only a 128-float numeric embedding.

Requirements

- Drupal 11
- PHP `openssl` extension
- Drush (for downloading required assets)
- A configured private files directory (strongly recommended)

Installation

1. Require the module
composer require drupal/ai_face_login

2. Enable the module
drush en ai_face_login

3. Download required assets
drush ai-face-login:download-assets

4. Rebuild caches
drush cr

Configuration

Navigate to **Administration → Configuration → People → AI Face Login**
(`/admin/config/people/ai-face-login`) to configure:

- **Similarity threshold** — Euclidean distance between face descriptors.
Lower values are stricter. Default: `0.4`.
- **Brute-force protection** — Maximum verification attempts and time window
per IP address.

Registering a face

1. Log in with your standard username and password.
2. Go to your user profile page.
3. Click "Register Face" and follow the on-screen instructions.
4. Allow camera access when prompted and click "Capture & Register".

Logging in with face

1. Go to the login page (`/user/login`) and click "Login with Face",
or navigate directly to `/ai-face/login-face`.
2. Enter your username or email address.
3. Click "Capture & Login" and allow camera access.

Activity

Total releases
1
First release
Jun 2026
Latest release
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0-alpha1 Pre-release Jun 1, 2026