Login

If you aren't speaking german, you can ask for support or post your request here.
Antworten
Thejohan
Beiträge: 2
Registriert: 27. Feb 2020, 18:52

Login

Beitrag von Thejohan »

Hi

I have the need to make a new loginpage.
But i cant figure out what i need.
I need to just verify user and password.
I dont need any sessions or any visible content.
Any idea?
Thanks!
Thejohan
Beiträge: 2
Registriert: 27. Feb 2020, 18:52

Re: Login

Beitrag von Thejohan »

To check password of a user


function formatString($string){
$string = trim(strip_tags(addslashes($string)));
return $string;
}


echo password_verify($formatString(PasswordGivenByUser), $PasswordFromDatabase) ? 'true' : 'false';
Antworten