Make users without firstname or lastname invalid

This commit is contained in:
Paal Braathen committed 2014-09-23 15:18:25 +02:00
1 parent c322782d3d
commit e6faca7fc3
1 file changed
+4
+4
View File
@@ -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;
}