I founds some code for saving passwords to an XML file, if you want all the
code for checking a user against an xml file I can post it otherwise here is a
snippet:
FormsAuthentication.HashPasswordForStoringInConfigFile(TextBoxPassword.Text,'sha1')
//----------------
uses
System.Collections, System.ComponentModel,
System.Data, System.Drawing, System.Web, System.Web.SessionState,
System.Web.UI, System.Web.UI.WebControls, System.Web.UI.HtmlControls,
System.IO, System.Xml, System.Web.Security,
Borland.Vcl.SysUtils;
uNode := GetUserXMLNode(NodeList,TextBox1.Text);
if uNode <> nil then begin
aNode := uNode.SelectSingleNode('password');
if CheckBoxEncrypt.Checked then
aNode.InnerText :=
FormsAuthentication.HashPasswordForStoringInConfigFile(TextBoxPassword.Text,'sha1')
else
aNode.InnerText :=TextBoxPassword.Text;
LabelStatus.Text := '[ Found User '+TextBox1.Text+', Overwrote! ]';
end;
---------------------------------
Yahoo! Mail
Use Photomail to share photos without annoying attachments.
[Non-text portions of this message have been removed]
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/