]> iEval git - plack-app-gruntmaster.git/commitdiff
Attempt to fix register
authorMarius Gavrilescu <marius@ieval.ro>
Tue, 25 Mar 2014 18:23:23 +0000 (20:23 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Tue, 25 Mar 2014 18:23:23 +0000 (20:23 +0200)
lib/Gruntmaster/Page/Register.pm

index ed2566058c7e334fbd989d399568c5b39d25be18..ef2760f4ebac4198dc70d294c99dd2298b384129 100644 (file)
@@ -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';
This page took 0.019467 seconds and 4 git commands to generate.