Cancel Email Authorization

I am logging in using AuthLogic, but I would like email to be optional. It seems, however, that authlogic out of the box makes this confirmed. Does anyone know a workaround?

+4
source share
2 answers

from the rails authlogic sample application:

  • Customize your model.

Make sure you have a model that you will authenticate with. Since we use the User model, it should look something like:

class User < ActiveRecord::Base acts_as_authentic do |c| c.my_config_option = my_value # for available options see documentation in: Authlogic::ActsAsAuthentic end # block optional end 

It should be noted here that this attempt to take care of all grunt authentications, including checking your username, email address, password and field token. You can easily disable this with the configuration. Example: c.validate_email_field = false. See Attribute Authlogic :: ActsAsAuthentic modules in the documentation for details.

Note:

You can easily disable this using the configuration. Example: c.validate_email_field = false.

Hope this helps.

Source: https://github.com/binarylogic/authlogic_example

+7
source

All Articles