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:
38
functions/passwd.h
Executable file
38
functions/passwd.h
Executable 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
|
Reference in New Issue
Block a user