Sha256: 5e7d72767c176b80e4454cd200f4711079aa68c39d86dc6ab354aeaf94e03a51
Contents?: true
Size: 600 Bytes
Versions: 2
Compression:
Stored size: 600 Bytes
Contents
class UserAuthenticationsController < Spree::BaseController def update @user = User.find(params[:id]) @user.email = params[:user][:email] if @user.save redirect_back_or_default(products_path) else flash.now[:error] = "There is already an account with that email. Please sign in to associate these accounts." render(:template => 'users/merge') end end def destroy @auth = current_user.user_authentications.find(params[:id]) @auth.destroy flash[:notice] = "Successfully deleted authentication source." redirect_to account_path end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_social-1.0.2 | app/controllers/user_authentications_controller.rb |
spree_social-1.0.1 | app/controllers/user_authentications_controller.rb |