mirror of
				https://github.com/fspc/BikeShed-1.git
				synced 2025-10-31 17:05:36 -04:00 
			
		
		
		
	Merge pull request #47 from spacemunkay/denney-create-user-sign-in
Changed so that user gets checked in after create.
This commit is contained in:
		
						commit
						1a8b9c9247
					
				| @ -223,7 +223,8 @@ Devise.setup do |config| | ||||
| end | ||||
| 
 | ||||
| #Check in the user if they sign in. (Devise uses Warden) | ||||
| Warden::Manager.after_authentication do |user,auth,opts| | ||||
| Warden::Manager.after_set_user do |user,auth,opts| | ||||
|   #this essentially gets called after every netzke request, but alas. | ||||
|   user.checkin unless user.checked_in? | ||||
| end | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user