Sha256: f39b275c2499551fcff69dc78a8d3a6f9d71752c11d471c18c5d6ce814b89d10
Contents?: true
Size: 680 Bytes
Versions: 3
Compression:
Stored size: 680 Bytes
Contents
# Controller responsible to sign_in an sign_out users class Users::SessionsController < Devise::SessionsController include SocialFramework before_filter :configure_sign_in_params, only: [:create] # GET /resource/sign_in # def new # super # end # POST /resource/sign_in # def create # super # end # DELETE /resource/sign_out def destroy current_user.graph.destroy(current_user.id) if current_user super end # protected # New params added: login and username. If you have extra params to permit, append them to the sanitizer. def configure_sign_in_params devise_parameter_sanitizer.for(:sign_in) << [:login, :username] end end
Version data entries
3 entries across 3 versions & 1 rubygems