mirror of
				https://github.com/Tivix/django-rest-auth.git
				synced 2025-10-31 07:47:33 +03:00 
			
		
		
		
	add REST_SESSION_LOGIN setting, v0.2.5
This commit is contained in:
		
							parent
							
								
									dc63dd4541
								
							
						
					
					
						commit
						4c611afd7f
					
				|  | @ -86,9 +86,7 @@ class Login(LoggedOutRESTAPIView, GenericAPIView): | ||||||
| 
 | 
 | ||||||
|             if user and user.is_authenticated(): |             if user and user.is_authenticated(): | ||||||
|                 if user.is_active: |                 if user.is_active: | ||||||
|                     # TODO: be able to configure this to either be |                     if getattr(settings, 'REST_SESSION_LOGIN', True): | ||||||
|                     # session or token or both |  | ||||||
|                     # right now it's both. |  | ||||||
|                         login(request, user) |                         login(request, user) | ||||||
| 
 | 
 | ||||||
|                     # Return REST Token object with OK HTTP status |                     # Return REST Token object with OK HTTP status | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								setup.py
									
									
									
									
									
								
							|  | @ -18,7 +18,7 @@ f.close() | ||||||
| 
 | 
 | ||||||
| setup( | setup( | ||||||
|     name='django-rest-auth', |     name='django-rest-auth', | ||||||
|     version='0.2.4', |     version='0.2.5', | ||||||
|     author='Sumit Chachra', |     author='Sumit Chachra', | ||||||
|     author_email='chachra@tivix.com', |     author_email='chachra@tivix.com', | ||||||
|     url='http://github.com/Tivix/django-rest-auth', |     url='http://github.com/Tivix/django-rest-auth', | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user