note 126079 added to features.http-auth

From: Date: Sun, 16 May 2021 17:35:52 +0000
Subject: note 126079 added to features.http-auth
Groups: php.notes 
Request: Send a blank email to php-notes+get-216387@lists.php.net to get a copy of this message
public function loginUser(){ $username = filter_var($_GET['username'],FILTER_SANITIZE_STRING); $pw = filter_var($_GET['pw'],FILTER_SANITIZE_STRING); $row = $this->userModel->selectUser($username); if (password_verify($pw,$row['pw'])){ $_SESSION["userId"] = $row['id']; $this->isLogin(); } else{ new Msg(true,"Benutzername und Passwort stimmen nicht überein!"); } } A short example for an user Login ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.242 (proxied: 2003:cf:9702:4500:41ce:5244:7637:a8f4) ---- Manual Page -- https://php.net/manual/en/features.http-auth.php Edit -- https://main.php.net/note/edit/126079 Del: integrated -- https://main.php.net/note/delete/126079/integrated Del: useless -- https://main.php.net/note/delete/126079/useless Del: bad code -- https://main.php.net/note/delete/126079/bad+code Del: spam -- https://main.php.net/note/delete/126079/spam Del: non-english -- https://main.php.net/note/delete/126079/non-english Del: in docs -- https://main.php.net/note/delete/126079/in+docs Del: other reasons-- https://main.php.net/note/delete/126079 Reject -- https://main.php.net/note/reject/126079 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#216387) next »