added: a new winix function: passwd

for changing your password
       or if you are a super user you can
       change a password for anyone
added: uname prints available plugins now



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@748 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2011-06-27 21:38:19 +00:00
parent 06f42dd9cb
commit eaf10c70b7
32 changed files with 871 additions and 448 deletions

38
functions/passwd.h Executable file
View File

@@ -0,0 +1,38 @@
/*
* This file is a part of Winix
* and is not publicly distributed
*
* Copyright (c) 2011, Tomasz Sowa
* All rights reserved.
*
*/
#ifndef headerfile_winix_functions_passwd
#define headerfile_winix_functions_passwd
#include "functionbase.h"
#include "core/user.h"
namespace Fun
{
class Passwd : public FunctionBase
{
public:
Passwd();
bool HasAccess();
void MakePost();
bool ChangePassword(const std::wstring & login, const std::wstring & new_password);
private:
UserPass up;
};
} // namespace
#endif