Remember password (checkbox not needed)
This is how i done it if someone want it lol (it's saving the password in regedit and also checkbox not needed):
Under:
Quote:
MWidget* pWidget = m_IDLResource.FindWidget("LoginID");
Add:
Quote:
MWidget* pWidget2 = m_IDLResource.FindWidget("LoginPassword");
Now under this ^
You will see:
Replace all the if with:
Quote:
if(pWidget)
{
char buffer[256];
char buffer2[256];
if (ZGetApplication()->GetSystemValue("LoginID", buffer) && ZGetApplication()->GetSystemValue("LoginPassword", buffer2 ) )
pWidget->SetText(buffer);
pWidget2->SetText(buffer2);
}
Go to:
Quote:
void ZGameInterface::OnLoginDestroy(void)
Replace all the void with this one:
Quote:
void ZGameInterface::OnLoginDestroy(void)
{
ShowWidget("Login", false);
MWidget* pWidget = m_IDLResource.FindWidget("LoginID");
MWidget* pWidget2 = m_IDLResource.FindWidget("LoginPassword");
if(pWidget)
{
ZGetApplication()->SetSystemValue("LoginID", pWidget->GetText());
ZGetApplication()->SetSystemValue("LoginPassword", pWidget2->GetText());
if ( m_pBackground)
m_pBackground->SetScene(LOGIN_SCENE_FALLDOWN);
}
Have fun guys :P
Re: Remember password (checkbox not needed)
It's getting better ;) Now put a MD5 hash in it!
Re: Remember password (checkbox not needed)
good post friends
Would you give me one box
It looks better
Re: Remember password (checkbox not needed)
Quote:
Originally Posted by
SkipChopJD
good post friends
Would you give me one box
It looks better
http://forum.ragezone.com/f245/remem...ssword-948430/
Re: Remember password (checkbox not needed)
Quote:
Originally Posted by
sahar042
Sigh people should learn to look further then their nose
sahar what was your skype?
Re: Remember password (checkbox not needed)
Re: Remember password (checkbox not needed)
Quote:
Originally Posted by
Touchwise
Sigh people should learn to look further then their nose
sahar what was your skype?
sahar042
Re: Remember password (checkbox not needed)
sahar042
Sorry but that is not just remember the password box
Re: Remember password (checkbox not needed)
Quote:
Originally Posted by
SkipChopJD
sahar042
Sorry but that is not just remember the password box
Stop talking trash and talk with arguements etc
Re: Remember password (checkbox not needed)
I'm already released this.
Re: Remember password (checkbox not needed)
Quote:
Originally Posted by
ghPer
I'm already released this.
Released what? Look at my code and look at yours.
And this one that i released you don't need to add a checkbox there is peoples that don't know how to add a checkbox or to fix it and you just released a code that working with checkbox and nothing else.
Re: Remember password (checkbox not needed)
Quote:
Originally Posted by
Touchwise
It's getting better ;) Now put a MD5 hash in it!
One-way encryption? That's not going to work unless you modify the MatchServer.
Re: Remember password (checkbox not needed)
Quote:
Originally Posted by
sahar042
Released what? Look at my code and look at yours.
And this one that i released you don't need to add a checkbox there is peoples that don't know how to add a checkbox or to fix it and you just released a code that working with checkbox and nothing else.
My code does not need checkbox.
and as I said it needs a checkbox...
Re: Remember password (checkbox not needed)
Quote:
Originally Posted by
ghPer
My code does not need checkbox. and as I said it needs a checkbox...
Pretty sure your code does need a checkbox.