Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

Commit

Permalink
Fixes issue creating admins
Browse files Browse the repository at this point in the history
The uid is the PID, not the email.
  • Loading branch information
rotated8 committed Nov 4, 2016
1 parent 72999eb commit 78a0c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/datarepo.rake
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ namespace :datarepo do
user = User.find_by({email: email})

if user.nil?
user = User.new(email: email, uid: email, provider: 'cas')
user = User.new(email: email, uid: email.split('@')[0], provider: 'cas')
end

user.roles << admin_role
Expand Down

0 comments on commit 78a0c8a

Please sign in to comment.