Sha256: a0f9af67c3e9746f5a5d46721b7b558c368d018835ce1c417c5712da2d1a5b80
Contents?: true
Size: 877 Bytes
Versions: 5
Compression:
Stored size: 877 Bytes
Contents
module Elabs module Auth class SessionsController < ::Devise::SessionsController include Elabs::Concerns::ElabsController include Elabs::Concerns::Reportable include Elabs::Concerns::Localizable # before_action :configure_sign_in_params, only: [:create] # GET /resource/sign_in # def new # super # end # POST /resource/sign_in def create super session[:show_nsfw] = current_user.preference.show_nsfw session[:locale] = current_user.preference.locale end # DELETE /resource/sign_out # def destroy # super # end # protected # If you have extra params to permit, append them to the sanitizer. # def configure_sign_in_params # devise_parameter_sanitizer.permit(:sign_in, keys: [:attribute]) # end end end end
Version data entries
5 entries across 5 versions & 1 rubygems