Skip to content

Commit

Permalink
set default value for user_type
Browse files Browse the repository at this point in the history
  • Loading branch information
amtuannguyen committed Jan 8, 2025
1 parent c98aa58 commit 3fc31c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/lib/warden/ppy_auth_strategy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def authenticate!
@user.admin = false
@user.active = true
@user.role = User::INSTRUCTOR_ROLE
@user.user_type = User::UNKNOWN
@user.uid = request.headers[USER]
@user.username = request.headers[USER]
@user.name = "#{request.headers[FIRSTNAME]} #{request.headers[SURNAME]}"
Expand Down

0 comments on commit 3fc31c5

Please sign in to comment.