Input password two times on registration
This commit is contained in:
parent
4c2d4bc47b
commit
ef2186d47f
|
@ -5,6 +5,7 @@ include("include/settings.php");
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>LibreCat</title>
|
||||
<?php include("themes/$theme_name/index.php"); ?>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -33,7 +33,10 @@ if($validUser){
|
|||
|
||||
$regErrorMsg = "";
|
||||
if(isset($_POST["reg"])){
|
||||
if(password_verify($_POST["invite"],"$2y$10\$Mofyx6QsxEartbq..53zlu.FwTX0aMmUeRCNnISvfmrC44iA1SfSO")){
|
||||
if($_POST["password"] != $_POST["rep_password"]){
|
||||
$regErrorMsg = "Passwords don't match";
|
||||
}
|
||||
else if(password_verify($_POST["invite"],"$2y$10\$Mofyx6QsxEartbq..53zlu.FwTX0aMmUeRCNnISvfmrC44iA1SfSO")){
|
||||
if($_POST["regname"]){
|
||||
|
||||
// Set user
|
||||
|
@ -97,6 +100,7 @@ if(isset($_POST["reg"])){
|
|||
<form name="input" action="" method="post">
|
||||
<label for="regname">Username:</label><input type="text" value="<?= $_POST["regname"] ?>" id="regname" name="regname"/><br/>
|
||||
<label for="password">Password:</label><input type="password" id="password" name="password"/><br/>
|
||||
<label for="password">Repeat pass:</label><input type="password" id="password" name="rep_password"/><br/>
|
||||
<label for="invite">Invite code:</label><input type="text" value="<?= $_POST["invite"] ?>" id="invite" name="invite"/><br/>
|
||||
<?php if(isset($regErrorMsg)) echo "<p class='errmsg'>$regErrorMsg</p>\n"; ?>
|
||||
<input type="submit" value="Register" name="reg"/>
|
||||
|
|
Loading…
Reference in New Issue