projects
/
gruntmaster-page.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d4306a0
)
Attempt to fix register
author
Marius Gavrilescu
<marius@ieval.ro>
Tue, 25 Mar 2014 18:23:23 +0000
(20:23 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Tue, 25 Mar 2014 18:23:23 +0000
(20:23 +0200)
lib/Gruntmaster/Page/Register.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Gruntmaster/Page/Register.pm
b/lib/Gruntmaster/Page/Register.pm
index ed2566058c7e334fbd989d399568c5b39d25be18..ef2760f4ebac4198dc70d294c99dd2298b384129 100644
(file)
--- 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;
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';
purge "/us/";
reply 'Registered successfully';
This page took
0.010023 seconds
and
4
git commands to generate.