dump_creds: ajout du dump de mdp compte crans
This commit is contained in:
parent
efc1367292
commit
6b08464bfc
1 changed files with 7 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash /usr/scripts/python.sh
|
#!/bin/bash /usr/scripts/python.sh
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
|
@ -44,7 +45,13 @@ elif not res:
|
||||||
exit(2)
|
exit(2)
|
||||||
else:
|
else:
|
||||||
item = res[0]
|
item = res[0]
|
||||||
|
if 'uid' not in item:
|
||||||
|
conf_reset_password = False
|
||||||
|
|
||||||
item.display()
|
item.display()
|
||||||
|
if conf_reset_password:
|
||||||
|
print("Le mot de passe (compte Crans) sera également réinitialisé")
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
c = prompt("[O/N]").lower()
|
c = prompt("[O/N]").lower()
|
||||||
if c == 'n':
|
if c == 'n':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue