mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	check if guest user actually exists
This commit is contained in:
		
							parent
							
								
									bbb9d5c0d6
								
							
						
					
					
						commit
						7406ad6297
					
				|  | @ -58,10 +58,7 @@ class SeedDMS_Controller_Login extends SeedDMS_Controller_Common { | |||
| 		 */ | ||||
| 		if(!$user && $settings->_enableGuestLogin && (int) $settings->_guestID) { | ||||
| 			$guestUser = $dms->getUser((int) $settings->_guestID); | ||||
| 			if(!$guestUser) { | ||||
| 				$this->setErrorMsg("login_error_text"); | ||||
| 				return false; | ||||
| 			} | ||||
| 			if($guestUser) { | ||||
| 				if(($login != $guestUser->getLogin())) { | ||||
| 					if ((!isset($pwd) || strlen($pwd)==0)) { | ||||
| 						$this->setErrorMsg("login_error_text"); | ||||
|  | @ -71,6 +68,7 @@ class SeedDMS_Controller_Login extends SeedDMS_Controller_Common { | |||
| 					$user = $guestUser; | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 
 | ||||
| 		/* Run any additional authentication method. The hook must return a | ||||
| 		 * valid user, if the authentication succeeded. If it fails, it must | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann