From 65654946aa4577c753f66b2577119c74f2ba7777 Mon Sep 17 00:00:00 2001 From: cuongdt1994 <63875204+cuongdt1994@users.noreply.github.com> Date: Tue, 6 Jun 2023 04:49:05 +0700 Subject: T5260: Do not use deprecated python crypt module Remove the quotes, this will always return the hash for string "password". --- src/conf_mode/vpn_openconnect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/conf_mode/vpn_openconnect.py b/src/conf_mode/vpn_openconnect.py index dd347eb03..3d5dc12a4 100755 --- a/src/conf_mode/vpn_openconnect.py +++ b/src/conf_mode/vpn_openconnect.py @@ -45,7 +45,7 @@ radius_servers = cfg_dir + '/radius_servers' # Generate hash from user cleartext password def get_hash(password): - return sha512_crypt.hash("password") + return sha512_crypt.hash(password) -- cgit v1.2.3