Selaa lähdekoodia

[fix] doc.get_password

version-14
Anand Doshi 9 vuotta sitten
vanhempi
commit
26f379e08b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      frappe/model/base_document.py

+ 1
- 1
frappe/model/base_document.py Näytä tiedosto

@@ -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)


Ladataan…
Peruuta
Tallenna