Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Bojan Borovcanin
/
WBT1920_team30
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2665ea79
authored
May 12, 2020
by
Bojan Borovcanin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
three more
parent
c47d6628
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
test/controllers/User.php
test/controllers/User.php
View file @
2665ea79
...
...
@@ -69,7 +69,7 @@ class User extends CI_Controller{
public
function
signUp
(){
$this
->
form_validation
->
set_rules
(
'firstname'
,
'Firstname'
,
'required|max_length[30]'
);
$this
->
form_validation
->
set_rules
(
'lastname'
,
'L
ir
stname'
,
'required|max_length[30]'
);
$this
->
form_validation
->
set_rules
(
'lastname'
,
'L
a
stname'
,
'required|max_length[30]'
);
$this
->
form_validation
->
set_rules
(
'gender'
,
'Gender'
,
'required'
);
$this
->
form_validation
->
set_rules
(
'username'
,
'Username'
,
'required|min_length[6]|max_length[30]|callback_username_is_unique'
);
$this
->
form_validation
->
set_rules
(
'email'
,
'Email'
,
'required|valid_email|max_length[30]|callback_email_is_unique'
);
...
...
@@ -136,8 +136,7 @@ class User extends CI_Controller{
if
(
preg_match
(
'#[0-9]#'
,
$str
)
&&
preg_match
(
'#[a-zA-Z]#'
,
$str
))
{
return
TRUE
;
}
$this
->
form_validation
->
set_message
(
'
password_check'
,
$this
->
form_validation
->
set_message
(
'password_check'
,
'Password have to be a combination of letters and numbers'
);
return
FALSE
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment