Fixed login/signup page background.Fixed payment input fields.Added login button on hosting page. Fixed hosting tests. Redirect to notifications page if an logged user try to login again.
This commit is contained in:
		
					parent
					
						
							
								8c304dedb9
							
						
					
				
			
			
				commit
				
					
						adde97bea3
					
				
			
		
					 6 changed files with 42 additions and 32 deletions
				
			
		| 
						 | 
				
			
			@ -128,6 +128,11 @@ class LoginView(FormView):
 | 
			
		|||
 | 
			
		||||
        return HttpResponseRedirect(self.get_success_url())
 | 
			
		||||
 | 
			
		||||
    def get(self, request, *args, **kwargs):
 | 
			
		||||
        if self.request.user.is_authenticated():
 | 
			
		||||
            return HttpResponseRedirect(reverse('hosting:notifications'))
 | 
			
		||||
        return super(LoginView, self).get(request, *args, **kwargs)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class SignupView(CreateView):
 | 
			
		||||
    template_name = 'hosting/signup.html'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue