The Login use case. When the user logs in the first time, the system shall direc
ID: 3588254 • Letter: T
Question
The Login use case. When the user logs in the first time, the system shall direct the user to a page to define authentication questions to be used when the user wants to reset the password in the future. As- sume that each user needs to define five questions and provide the answers to these questions. Please provide examples.
Explanation / Answer
function fail($pub, $pvt = '') { $msg = $pub; if ($pvt !== '') $msg .= ": $pvt"; exit("An error occurred ($msg). "); } ($stmt = $db->prepare('insert into users (user, pass) values (?, ?)')) || fail('MySQL prepare', $db->error); $stmt->bind_param('ss', $user, $hash) || fail('MySQL bind_param', $db->error); $stmt->execute() || fail('MySQL execute', $db->error);
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.