Sha256: eceea970b4d74ddd43a890fe0edc11516cbfc1e340fbd1d4031891097e2a35c5

Contents?: true

Size: 995 Bytes

Versions: 35

Compression:

Stored size: 995 Bytes

Contents

= Set password when verifying account

If you want to request less information from the user on registration, you can
ask the user to set their password only when they verify their account:

  plugin :rodauth do
    enable :login, :logout, :verify_account
    verify_account_set_password? true
  end

Note that this is already the default behaviour when verify account feature is
loaded, but it's not when verify account grace period is used, because it would
prevent the account from logging in during the grace period. You can work around
this by automatically remebering their login during account creation using the
remember feature.  Be aware that remembering accounts has effects beyond the
verification period, and this would only allow automatic logins from the browser
that created the account.

  plugin :rodauth do
    enable :login, :logout, :verify_account_grace_period, :remember
    verify_account_set_password? true
    after_create_account do
      remember_login
    end
  end

Version data entries

35 entries across 35 versions & 1 rubygems

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