added: winix function 'account'
code for activating an account has been moved here from Pw changed: the form for reseting a user's password has been moved to 'passwd' winix function (it was in Pw before) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@926 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
48
templates/passwd.cpp
Executable file
48
templates/passwd.cpp
Executable file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2013, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include "core/request.h"
|
||||
#include "templates.h"
|
||||
|
||||
|
||||
|
||||
|
||||
namespace TemplatesFunctions
|
||||
{
|
||||
|
||||
|
||||
void passwd_resetpass_login(Info & i)
|
||||
{
|
||||
if( cur->request->IsPostVar(L"login") )
|
||||
i.out << cur->request->PostVar(L"login");
|
||||
else
|
||||
i.out << cur->request->ParamValue(L"login");
|
||||
}
|
||||
|
||||
|
||||
void passwd_resetpass_code(Info & i)
|
||||
{
|
||||
if( cur->request->IsPostVar(L"code") )
|
||||
i.out << cur->request->PostVar(L"code");
|
||||
else
|
||||
i.out << cur->request->ParamValue(L"code");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
} // namespace
|
||||
|
||||
|
Reference in New Issue
Block a user