2013-05-16 21:26:44 +02:00
|
|
|
/*
|
|
|
|
* This file is a part of Winix
|
|
|
|
* and is not publicly distributed
|
|
|
|
*
|
2014-02-12 17:30:49 +01:00
|
|
|
* Copyright (c) 2013-2014, Tomasz Sowa
|
2013-05-16 21:26:44 +02:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "core/request.h"
|
|
|
|
#include "templates.h"
|
|
|
|
|
2014-02-12 17:30:49 +01:00
|
|
|
namespace Winix
|
|
|
|
{
|
2013-05-16 21:26:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2014-02-12 17:30:49 +01:00
|
|
|
} // namespace Winix
|
|
|
|
|
2013-05-16 21:26:44 +02:00
|
|
|
|