From fee10194156af0607d20ec8baeb42d8365cb8d61 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Tue, 25 Mar 2014 20:23:23 +0200 Subject: [PATCH] Attempt to fix register --- lib/Gruntmaster/Page/Register.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Gruntmaster/Page/Register.pm b/lib/Gruntmaster/Page/Register.pm index ed25660..ef2760f 100644 --- a/lib/Gruntmaster/Page/Register.pm +++ b/lib/Gruntmaster/Page/Register.pm @@ -14,7 +14,7 @@ sub generate{ return reply 'All fields are required' if grep { !length } $username, $password, $confirm_password, $name, $email, $phone, $town, $university, $level; pwset $username, $password; - db($env)->create({id => $username, name => $name, email => $email, phone => $phone, town => $town, university => $university, level => $level}); + db($env)->users->create({id => $username, name => $name, email => $email, phone => $phone, town => $town, university => $university, level => $level}); purge "/us/"; reply 'Registered successfully'; -- 2.39.2