Make users without firstname or lastname invalid
This commit is contained in:
1 parent
c322782d3d
commit
e6faca7fc3
1 file changed
+4
@@ -351,6 +351,10 @@ class User {
|
||||
notify("Ugyldig format på epostadresse.");
|
||||
$valid = false;
|
||||
}
|
||||
if ( $this->firstname == "" || $this->lastname == "" ) {
|
||||
notify("Du må oppgi både fornavn og etternavn.");
|
||||
$valid = false;
|
||||
}
|
||||
return $valid;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user