Skip to content

Commit

Permalink
Add guide for configuring case insensitive logins
Browse files Browse the repository at this point in the history
  • Loading branch information
janko committed Nov 18, 2024
1 parent eabfa69 commit 887632c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/guides/case_insensitive_logins.rdoc
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.

0 comments on commit 887632c

Please sign in to comment.