mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
[fix] Not enough random file name
This commit is contained in:
parent
ecaecddac5
commit
c34d9fd74d
1 changed files with 1 additions and 2 deletions
|
@ -713,8 +713,7 @@ end
|
||||||
-- Read result of a command after given it securely the password
|
-- Read result of a command after given it securely the password
|
||||||
function secure_cmd_password(cmd, password, start)
|
function secure_cmd_password(cmd, password, start)
|
||||||
-- Check password validity
|
-- Check password validity
|
||||||
math.randomseed( os.time() )
|
local tmp_file = os.tmpname()
|
||||||
local tmp_file = "/tmp/ssowat_"..math.random()
|
|
||||||
local w_pwd = io.popen("("..cmd..") | tee -a "..tmp_file, 'w')
|
local w_pwd = io.popen("("..cmd..") | tee -a "..tmp_file, 'w')
|
||||||
w_pwd:write(password)
|
w_pwd:write(password)
|
||||||
-- This second write is just to validate the password question
|
-- This second write is just to validate the password question
|
||||||
|
|
Loading…
Reference in a new issue