mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	update: support md5 with sha256
This commit is contained in:
		| @@ -69,6 +69,7 @@ class Helper | ||||
|         switch($algo) { | ||||
|             case 'md5': return md5($password) === $hash; | ||||
|             case 'sha256': return hash('sha256', $password) === $hash; | ||||
|             case 'mws': return md5(hash('sha256', $password)) === $hash; | ||||
|             default: return password_verify($password, $hash); | ||||
|         } | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user