Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Digamos que foi digitado este valor!
- $Username = "juninhom12";
- $Password = "123456";
- $PasswordBancoDeDados = "$10$KT.0hnVD.xAj0r96Si.ZqOI.LrsYKf7Xg6IfHHKnLO5XANqlQfPzq";
- if( !isset( $_SESSION['username'] ) ):
- Password::setPassword( $Password, $PasswordBancoDeDados );
- // Verifica os dados informados
- if( !Password::CheckPassword() ):
- echo "A senha informada está incorreta!";
- else:
- // Exemplo
- echo "Senha correta, aguarde você será redirecionado!";
- endif;
- endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement