Skip to content

Instantly share code, notes, and snippets.

@jos3000
Created March 17, 2010 15:13
Show Gist options
  • Save jos3000/335344 to your computer and use it in GitHub Desktop.
Save jos3000/335344 to your computer and use it in GitHub Desktop.
<YForm>
<name>login</name>
<legend>Login</legend>
<submit_label>Login</submit_label>
<success_url>index.php</success_url>
<InputList>
<Input>
<name>login</name>
<label>Login</label>
<type>text</type>
<hint>Your phone number or email address.</hint>
</Input>
<Input>
<name>password</name>
<label>Password</label>
<type>password</type>
</Input>
</InputList>
<Rule>
<inputs>login,password</inputs>
<method>stoponfailure</method>
<RuleList>
<Rule>
<inputs>login</inputs>
<method>stoponsuccess</method>
<message></message>
<RuleList>
<Rule>
<validator>EmailAddress</validator>
</Rule>
<Rule>
<validator>Digits</validator>
</Rule>
</RuleList>
</Rule>
<Rule>
<inputs>password</inputs>
<validator>NotEmpty</validator>
</Rule>
<Rule>
<inputs>login,password</inputs>
<validator>ConsumerAuthenticate</validator>
</Rule>
</RuleList>
</Rule>
</YForm>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment