Browse Source

Генерация пароля unix

tags/3.5.0_alpha1
parent
commit
d7522f4fa8
1 changed files with 9 additions and 8 deletions
  1. +9
    -8
      pym/unix/variables/unix.py

+ 9
- 8
pym/unix/variables/unix.py View File

@@ -80,14 +80,15 @@ class VariableLdUnixPw(ServerEnvHelper, RandomPasswordHelper, Variable):

@property
def fallback_value(self):
return "test22"

def get(self):
if self.Get('ld_unix_pw_generate_set') == 'on':
return "test22"
return RandomPasswordHelper.get(self)
else:
super(VariableLdUnixPw, self).get()
#return "test22"
return RandomPasswordHelper.get(self)

#def get(self):
# if self.Get('ld_unix_pw_generate_set') == 'on':
# return "test22"
# return RandomPasswordHelper.get(self)
# else:
# super(VariableLdUnixPw, self).get()

class VariableLdUnixPwGenerateSet(Variable):
"""


Loading…
Cancel
Save