In login(), force passwd and acct to '' when they are None (this can happen in the test program!).
Attach a file by drag & drop or click to upload