From: Marius Gavrilescu Date: Tue, 25 Mar 2014 18:23:23 +0000 (+0200) Subject: Attempt to fix register X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=fee10194156af0607d20ec8baeb42d8365cb8d61;p=plack-app-gruntmaster.git Attempt to fix register --- 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';