Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $array = include __DIR__ . '/massiv.php';
- function getUsersList($array) {
- return $array;
- }
- function existsUser($login, $array){
- $login = 'vasya';
- array_key_exists($login, $array);
- }
- function сheckPassword($login, $password, $array ){
- $hash = $users['vasya'];
- if (password_verify($password, $hash)) {
- if (existsUser($login, $array)) {
- return true;
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement