Ignore:
Timestamp:
07/10/13 11:08:30 (17 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
ed24336f
Parents:
e961598
Message:

Add ability to PEFS encrypt users home-directories when we
create a new user via the user-manager GUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-usermanager/user.cpp

    r1620346 r87d35b7  
    3535    shell = "Not set"; 
    3636    fullname = "Not set"; 
     37    enc = false; 
    3738    status = 0; 
    3839    password = ""; 
     
    4546    this->gid = gid; 
    4647    this->home = home; 
     48    if ( QFile::exists(home + "/.pefs.db")) 
     49      this->enc = true;  
     50    else 
     51      this->enc = false;  
    4752    this->shell = shell; 
    4853    this->fullname = fullname; 
     
    5762    this->shell = shell; 
    5863    this->fullname = fullname; 
     64    this->enc = false; 
    5965    status = 0; 
    6066    if (isNew) { status = 2; } 
    6167    this->uid = uid; 
    6268    this->gid = gid; 
     69    this->clearPass = password; 
    6370     
    6471    setPassword(password); 
     
    7986int User::getGid() { 
    8087    return gid; 
     88} 
     89 
     90bool User::getEnc() { 
     91    return enc; 
     92} 
     93 
     94void User::setEnc(bool Enc) { 
     95    this->enc = Enc; 
    8196} 
    8297 
     
    139154} 
    140155 
     156QString User::getClearPassword() 
     157{ 
     158    return clearPass; 
     159} 
     160 
    141161bool User::getDeleted() 
    142162{ 
Note: See TracChangeset for help on using the changeset viewer.