i need to replace this line in the script below this line ${CheckUserEmailAddress} "$1" "$R1"
with an input string length check; instead of email check i have for for the second field (its not a password field!)
after the email is verified; i just need to verify the next field has at least 8 characters before moving on to the next check,
any advice?
TIA
Chris
Function CustomCreate
nsDialogs::Create 1018
Pop $Dialog2
${If} $Dialog2 == error
Abort
${EndIf}
${NSD_CreateGroupBox} 5u 0u 96.5% 55u "Order Details"
Pop $GroupBox1
SendMessage $GroupBox1 ${WM_SETFONT} $hCtl_TestDesigner_Font1 0
${NSD_CreateLabel} 15 31 20% 12u "Email:"
Pop $0
${NSD_CreateText} 120 26 50% 13u $Text2_State
Pop $Text
${NSD_CreateLabel} 15 55 20% 12u "Code"
Pop $1
${NSD_CreateText} 120 50 50% 13u $Text2_State
Pop $Text2
nsDialogs::Show
FunctionEnd
Function CustomLeave
${NSD_GetText} $Text $0
${CheckUserEmailAddress} "$0" "$R0"
StrCmp $R0 "1" 0 next
MessageBox MB_OK "invalid email"
Abort
next:
${NSD_GetText} $Text2 $1
${CheckUserEmailAddress} "$1" "$R1"
StrCmp $R1 "1" 0 next2
MessageBox MB_OK "invalid code"
Abort
next2:
FunctionEnd