CodePudding user response:
Judge statement user name and password may have holesCodePudding user response:
Can you give me a function?CodePudding user response:
SQL server is set into a Windows account logged in, your function up to look at itCodePudding user response:
Here is one of my login window, you can try can do notIf the trim (sle_pwd. Text)="" or isnull (sle_pwd. Text) then
Messagebox (" prompt ", "password cannot be empty!" )
Sle_pwd. Setfocus ()
The else
String ls_pw
Ls_name=ddlb_use. Text
Int li_count
Select the password, qx into: ls_pw, : ls_qx from EAM_namepassword where name=: ls_name;
commit;
String ls_pw1
Ls_pw1=trim (sle_pwd. Text)
If the trim (ls_pw) & lt;> Ls_pw1 then
Messagebox (" prompt ", "password error")
Sle_pwd. Setfocus ()
Sle_pwd. Text=""
Return 0
The else
Open (w_main)
Close (the parent)
End the if
End the if