Sha256: 1a22c93550d10dc61d8715c90d8d62fea6bb055084a3585a661f37ba4fe0165a
Contents?: true
Size: 538 Bytes
Versions: 1
Compression:
Stored size: 538 Bytes
Contents
module G5Authenticatable class SessionsController < DeviseG5Authenticatable::SessionsController protected def register_resource create_resource sign_in_resource end def signed_in_root_path(resource_or_scope) main_app.root_path end def create_resource self.resource = G5Authenticatable::User.new_with_session({}, session) resource.update_g5_credentials(auth_data) resource.save! end def after_omniauth_failure_path_for(scope) auth_error_path end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
g5_authenticatable-0.3.0 | app/controllers/g5_authenticatable/sessions_controller.rb |