- rails devise only allow existing users to register new users?
- before_filter :authenticate_homol
- def authenticate_homol
- if (Rails.env == 'staging') # for example
- authenticate_or_request_with_http_basic do |username, password|
- username == "login" && password == "123456"
- end
- warden.custom_failure! if performed?
- end
- end