-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add guide for configuring case insensitive logins
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
= Case insensitive logins | ||
|
||
If your database schema doesn't support case insensitive logins, you can tell | ||
Rodauth to automatically lowercase login param values during authentication and | ||
persistence via the +normalize_login+ configuration option: | ||
|
||
normalize_login(&:downcase) | ||
|
||
Of the four database types Rodauth officially supports (PostgreSQL, MySQL, | ||
Microsoft SQL Server, and SQLite), only SQLite does not support a case | ||
insensitive column for storing logins by default. However, other databases could | ||
be configured to not use a case insensitive column for logins by default, in | ||
which case you would want to use this setting. |