mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-07 18:13:36 +01:00
Remove old authentication checks in UserController
This commit is contained in:
parent
8141db2ca7
commit
52de0cddb0
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
class UserController < ApplicationController
|
class UserController < ApplicationController
|
||||||
before_action :authenticate_user!, only: %w[edit update edit_privacy update_privacy data export begin_export edit_security update_2fa destroy_2fa reset_user_recovery_codes edit_mute]
|
before_action :authenticate_user!, only: %w[edit_privacy update_privacy data export begin_export edit_security update_2fa destroy_2fa reset_user_recovery_codes edit_mute]
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@user = User.where('LOWER(screen_name) = ?', params[:username].downcase).includes(:profile).first!
|
@user = User.where('LOWER(screen_name) = ?', params[:username].downcase).includes(:profile).first!
|
||||||
|
|
Loading…
Reference in a new issue