diff --git a/index.php b/index.php
index 51adabf..7057fed 100644
--- a/index.php
+++ b/index.php
@@ -5,6 +5,7 @@ include("include/settings.php");
+LibreCat
diff --git a/login.php b/login.php
index d4a8af5..77ea8f7 100644
--- a/login.php
+++ b/login.php
@@ -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"])){