|  | @ -20,12 +20,22 @@ namespace CoviDok.Controllers | 
			
		
	
		
		
			
				
					|  |  |         public async Task<ActionResult<AuthIdentity>> PostLogin(AuthLogin authLogin) |  |  |         public async Task<ActionResult<AuthIdentity>> PostLogin(AuthLogin authLogin) | 
			
		
	
		
		
			
				
					|  |  |         { |  |  |         { | 
			
		
	
		
		
			
				
					|  |  |             AuthIdentity authIdentity = new AuthIdentity(); |  |  |             AuthIdentity authIdentity = new AuthIdentity(); | 
			
		
	
		
		
			
				
					|  |  |             if (authLogin.Email == "a" && authLogin.Password == "a") |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             authIdentity.FirstName = "Sajt"; |  |  |             authIdentity.FirstName = "Sajt"; | 
			
		
	
		
		
			
				
					|  |  |             authIdentity.LastName = "Osperec"; |  |  |             authIdentity.LastName = "Osperec"; | 
			
		
	
		
		
			
				
					
					|  |  |                 authIdentity.Id = "asdfasdfadf"; |  |  |             authIdentity.Id = "asdfasdfadf"; //SessionID
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 authIdentity.Role = Api.Role.Doc; |  |  |             if (authLogin.Email == "a@domain.tld" && authLogin.Password == "a") | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |             {              | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 authIdentity.Role = Role.Doc; | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 return authIdentity; | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             if (authLogin.Email == "b@domain.tld" && authLogin.Password == "b") | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 authIdentity.Role = Role.Ast; | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 return authIdentity; | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             if (authLogin.Email == "c@domain.tld" && authLogin.Password == "c") | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 authIdentity.Role = Role.Par; | 
			
		
	
		
		
			
				
					|  |  |                 return authIdentity; |  |  |                 return authIdentity; | 
			
		
	
		
		
			
				
					|  |  |             } |  |  |             } | 
			
		
	
		
		
			
				
					|  |  |             return Unauthorized(); |  |  |             return Unauthorized(); | 
			
		
	
	
		
		
			
				
					|  | @ -36,6 +46,7 @@ namespace CoviDok.Controllers | 
			
		
	
		
		
			
				
					|  |  |         public async Task<ActionResult<GenericResponse>> PostRegister(AuthRegistration authRegistration) |  |  |         public async Task<ActionResult<GenericResponse>> PostRegister(AuthRegistration authRegistration) | 
			
		
	
		
		
			
				
					|  |  |         { |  |  |         { | 
			
		
	
		
		
			
				
					|  |  |             // System.Diagnostics.Debug.WriteLine(authRegistration.ToString());
 |  |  |             // System.Diagnostics.Debug.WriteLine(authRegistration.ToString());
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             // Validate Email
 | 
			
		
	
		
		
			
				
					|  |  |             GenericResponse genericResponse = new GenericResponse(); |  |  |             GenericResponse genericResponse = new GenericResponse(); | 
			
		
	
		
		
			
				
					|  |  |             if (authRegistration.Email == "a") |  |  |             if (authRegistration.Email == "a") | 
			
		
	
		
		
			
				
					|  |  |             { |  |  |             { | 
			
		
	
	
		
		
			
				
					|  | 
 |