mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Merge pull request #190 from YunoHost/fix-randomfile
[fix] Not enough random file name
This commit is contained in:
commit
4eb92f9685
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
|
||||
function secure_cmd_password(cmd, password, start)
|
||||
-- Check password validity
|
||||
math.randomseed( os.time() )
|
||||
local tmp_file = "/tmp/ssowat_"..math.random()
|
||||
local tmp_file = os.tmpname()
|
||||
local w_pwd = io.popen("("..cmd..") | tee -a "..tmp_file, 'w')
|
||||
w_pwd:write(password)
|
||||
-- This second write is just to validate the password question
|
||||
|
|
Loading…
Reference in a new issue