The verification code of Java project login does not work

CSDN Q & A 2022-02-13 05:56:08 阅读数:418

verification code java project login

img

Is that I write a final project , When logging in, the verification code is entered correctly , But it shows an input error , I can't log in , Instead, I entered the wrong verification code , Or no input , It can log in normally .

This is the login code and verification code :
img

img

img

img

img

img




Take the answer :

login Of the 30 That's ok , checkcode==null || checkcode.equalsIg......
Not written or equal ?? It's obviously written backwards
checkcode==null || !checkcode.equals.....



Other answers 2:

In your opinion , Your judgment should be reversed . Add a negative sign !


Other answers 3:

1. At the time of login verification servlet Print the generated verification code and session Check whether the value in it ,
2. Look at the verification code entered in the login interface and session Whether the inside is consistent .


Other answers 4:

img

copyright:author[CSDN Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130556047643.html