Class: Authorio::UsersController

Inherits:
AuthorioController show all
Defined in:
app/controllers/authorio/users_controller.rb

Instance Method Summary collapse

Methods inherited from AuthorioController

#authorized?, #current_user, #index, #logged_in?, #profile_url, #rememberable?, #user_scope_description, #user_session

Instance Method Details

#editObject

GET /users/:id/edit



13
14
15
# File 'app/controllers/authorio/users_controller.rb', line 13

def edit
  @user = User.find(params[:id])
end

#showObject

GET /users/:id



8
9
10
# File 'app/controllers/authorio/users_controller.rb', line 8

def show
  @user = User.find(params[:id])
end

#updateObject

PATCH /users/:id



18
19
20
21
22
# File 'app/controllers/authorio/users_controller.rb', line 18

def update
  User.find(params[:id]).update(user_params)
  flash[:info] = 'Profile Saved'
  redirect_to edit_user_path
end

#verifyObject

This is only called by IndieAuth clients who wish to verify that a user profile URL we generated is in fact ours.



26
# File 'app/controllers/authorio/users_controller.rb', line 26

def verify; end