Sha256: a60816b9f88be208470bd87d0e6f010759d0cc11bc352a7ee01b24b94752b1ee

Contents?: true

Size: 815 Bytes

Versions: 35

Compression:

Stored size: 815 Bytes

Contents

= Store password hash in accounts table

By default, Rodauth stores the password hash in a separate
+account_password_hashes+ table.  This makes it a lot less likely that the
password hashes will be leaked, especially if you use Rodauth's default
approach of using database functions for checking the hashes.

However, if you have reasons for storing the password hashes in +accounts+
table that outweigh the security benefits of Rodauth's default approach,
Rodauth supports that.

To do this, add the password hash column to the +accounts+ table:

  alter_table :accounts do
    add_column :password_hash, String
  end

And then tell Rodauth to use it:

  plugin :rodauth do
    enable :login, :logout

    # Use the password_hash column in the accounts table
    account_password_hash_column :password_hash
  end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
rodauth-2.36.0 doc/guides/password_column.rdoc
rodauth-2.34.0 doc/guides/password_column.rdoc
rodauth-2.33.0 doc/guides/password_column.rdoc
rodauth-2.32.0 doc/guides/password_column.rdoc
rodauth-2.31.0 doc/guides/password_column.rdoc
rodauth-2.30.0 doc/guides/password_column.rdoc
rodauth-2.29.0 doc/guides/password_column.rdoc
rodauth-2.28.0 doc/guides/password_column.rdoc
rodauth-2.27.0 doc/guides/password_column.rdoc
rodauth-2.26.1 doc/guides/password_column.rdoc
rodauth-2.26.0 doc/guides/password_column.rdoc
rodauth-2.25.0 doc/guides/password_column.rdoc
rodauth-2.24.0 doc/guides/password_column.rdoc
rodauth-2.23.0 doc/guides/password_column.rdoc
rodauth-2.22.0 doc/guides/password_column.rdoc
rodauth-2.21.0 doc/guides/password_column.rdoc
rodauth-2.20.0 doc/guides/password_column.rdoc
rodauth-2.19.0 doc/guides/password_column.rdoc
rodauth-2.18.0 doc/guides/password_column.rdoc
rodauth-2.17.0 doc/guides/password_column.rdoc