~ubuntu-branches/ubuntu/vivid/freemedforms-project/vivid-proposed

« back to all changes in this revision

Viewing changes to plugins/usermanagerplugin/usermodel.cpp

  • Committer: Package Import Robot
  • Author(s): Eric Maeker
  • Date: 2014-09-14 13:58:26 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20140914135826-5bbbnd3hievwm358
Tags: 0.9.4-1
New upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
500
500
 
501
501
    Utils::PasswordCrypter crypter;
502
502
    QString log64 = Utils::loginForSQL(clearLog);
503
 
    QString cryptpass64 = crypter.cryptPassword(clearPassword);
 
503
    // Get crypted password from database
 
504
    QString cryptpass64 = userBase()->getCryptedPassword(clearLog);
 
505
    // Check password
 
506
    if (!crypter.checkPassword(clearPassword, cryptpass64)) {
 
507
        LOG_ERROR("Wrong password");
 
508
        return false;
 
509
    }
504
510
 
505
511
    QList<IUserListener *> listeners = pluginManager()->getObjects<IUserListener>();
506
512