Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
f57b3536
Commit
f57b3536
authored
Nov 13, 2013
by
slavcodev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed apps rules
parent
2adcd16e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
20 deletions
+20
-20
LoginForm.php
apps/advanced/common/models/LoginForm.php
+2
-2
User.php
apps/advanced/common/models/User.php
+12
-12
ContactForm.php
apps/advanced/frontend/models/ContactForm.php
+2
-2
ContactForm.php
apps/basic/models/ContactForm.php
+2
-2
LoginForm.php
apps/basic/models/LoginForm.php
+2
-2
No files found.
apps/advanced/common/models/LoginForm.php
View file @
f57b3536
...
@@ -23,9 +23,9 @@ class LoginForm extends Model
...
@@ -23,9 +23,9 @@ class LoginForm extends Model
// username and password are both required
// username and password are both required
[[
'username'
,
'password'
],
'required'
],
[[
'username'
,
'password'
],
'required'
],
// password is validated by validatePassword()
// password is validated by validatePassword()
[
[
'password'
]
,
'validatePassword'
],
[
'password'
,
'validatePassword'
],
// rememberMe must be a boolean value
// rememberMe must be a boolean value
[
[
'rememberMe'
]
,
'boolean'
],
[
'rememberMe'
,
'boolean'
],
];
];
}
}
...
...
apps/advanced/common/models/User.php
View file @
f57b3536
...
@@ -104,18 +104,18 @@ class User extends ActiveRecord implements IdentityInterface
...
@@ -104,18 +104,18 @@ class User extends ActiveRecord implements IdentityInterface
public
function
rules
()
public
function
rules
()
{
{
return
[
return
[
[
[
'username'
]
,
'filter'
,
'filter'
=>
'trim'
],
[
'username'
,
'filter'
,
'filter'
=>
'trim'
],
[
[
'username'
]
,
'required'
],
[
'username'
,
'required'
],
[
[
'username'
]
,
'string'
,
'min'
=>
2
,
'max'
=>
255
],
[
'username'
,
'string'
,
'min'
=>
2
,
'max'
=>
255
],
[
[
'email'
]
,
'filter'
,
'filter'
=>
'trim'
],
[
'email'
,
'filter'
,
'filter'
=>
'trim'
],
[
[
'email'
]
,
'required'
],
[
'email'
,
'required'
],
[
[
'email'
]
,
'email'
],
[
'email'
,
'email'
],
[
[
'email'
]
,
'unique'
,
'message'
=>
'This email address has already been taken.'
,
'on'
=>
'signup'
],
[
'email'
,
'unique'
,
'message'
=>
'This email address has already been taken.'
,
'on'
=>
'signup'
],
[
[
'email'
]
,
'exist'
,
'message'
=>
'There is no user with such email.'
,
'on'
=>
'requestPasswordResetToken'
],
[
'email'
,
'exist'
,
'message'
=>
'There is no user with such email.'
,
'on'
=>
'requestPasswordResetToken'
],
[
[
'password'
]
,
'required'
],
[
'password'
,
'required'
],
[
[
'password'
]
,
'string'
,
'min'
=>
6
],
[
'password'
,
'string'
,
'min'
=>
6
],
];
];
}
}
...
...
apps/advanced/frontend/models/ContactForm.php
View file @
f57b3536
...
@@ -25,9 +25,9 @@ class ContactForm extends Model
...
@@ -25,9 +25,9 @@ class ContactForm extends Model
// name, email, subject and body are required
// name, email, subject and body are required
[[
'name'
,
'email'
,
'subject'
,
'body'
],
'required'
],
[[
'name'
,
'email'
,
'subject'
,
'body'
],
'required'
],
// email has to be a valid email address
// email has to be a valid email address
[
[
'email'
]
,
'email'
],
[
'email'
,
'email'
],
// verifyCode needs to be entered correctly
// verifyCode needs to be entered correctly
[
[
'verifyCode'
]
,
'captcha'
],
[
'verifyCode'
,
'captcha'
],
];
];
}
}
...
...
apps/basic/models/ContactForm.php
View file @
f57b3536
...
@@ -25,9 +25,9 @@ class ContactForm extends Model
...
@@ -25,9 +25,9 @@ class ContactForm extends Model
// name, email, subject and body are required
// name, email, subject and body are required
[[
'name'
,
'email'
,
'subject'
,
'body'
],
'required'
],
[[
'name'
,
'email'
,
'subject'
,
'body'
],
'required'
],
// email has to be a valid email address
// email has to be a valid email address
[
[
'email'
]
,
'email'
],
[
'email'
,
'email'
],
// verifyCode needs to be entered correctly
// verifyCode needs to be entered correctly
[
[
'verifyCode'
]
,
'captcha'
],
[
'verifyCode'
,
'captcha'
],
];
];
}
}
...
...
apps/basic/models/LoginForm.php
View file @
f57b3536
...
@@ -23,9 +23,9 @@ class LoginForm extends Model
...
@@ -23,9 +23,9 @@ class LoginForm extends Model
// username and password are both required
// username and password are both required
[[
'username'
,
'password'
],
'required'
],
[[
'username'
,
'password'
],
'required'
],
// password is validated by validatePassword()
// password is validated by validatePassword()
[
[
'password'
]
,
'validatePassword'
],
[
'password'
,
'validatePassword'
],
// rememberMe must be a boolean value
// rememberMe must be a boolean value
[
[
'rememberMe'
]
,
'boolean'
],
[
'rememberMe'
,
'boolean'
],
];
];
}
}
...
...
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