Преглед изворни кода

[fix] doc.get_password

version-14
Anand Doshi пре 9 година
родитељ
комит
26f379e08b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      frappe/model/base_document.py

+ 1
- 1
frappe/model/base_document.py Прегледај датотеку

@@ -586,7 +586,7 @@ class BaseDocument(object):
self.set(df.fieldname, '*'*len(new_password))

def get_password(self, fieldname='password', raise_exception=True):
if not self.is_dummy_password(self.get(fieldname)):
if self.get(fieldname) and not self.is_dummy_password(self.get(fieldname)):
return self.get(fieldname)

return get_decrypted_password(self.doctype, self.name, fieldname, raise_exception=raise_exception)


Loading…
Откажи
Сачувај