Ignore:
Timestamp:
Jan 29, 2018, 2:31:58 PM (20 months ago)
Author:
hectorgh
Message:

Fixing password db encoding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • n4d-server-plugins/trunk/fuentes/server-install-files/usr/share/n4d/python-plugins/PasswordManager.py

    r6238 r6719  
    44import shutil
    55import json
     6import codecs
    67
    78import sqlite3
     
    9899                if user_name not in self.users:
    99100                        self.users[user_name]={}
    100                        
     101               
     102                if type(cn)==str:
     103                        cn=cn.decode("utf-8")
     104                if type(sn)==str:
     105                        sn=sn.decode("utf-8")
     106       
    101107                self.users[user_name]["cn"]=cn
    102108                self.users[user_name]["sn"]=sn
Note: See TracChangeset for help on using the changeset viewer.