Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
0e96e5b2
authored
2011-07-29 14:46:37 +0000
by
Marty Penner
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Promoting r258 to live. refs #1256
1 parent
2d3e57c6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
com/Auth/Auth.php
com/Auth/Auth.php
View file @
0e96e5b
...
...
@@ -27,7 +27,7 @@ const OPTION_NAME = 'tz_auth'; // Database lookup key (`wp_options`.`option_name
if
(
empty
(
$wpdb
->
signups
))
{
$wpdb
->
signups
=
$wpdb
->
prefix
.
'signups'
;
}
//die(var_dump(wp_hash_password('a ')));
Vars
::
$options
=
new
Tools\WP_Option
(
OPTION_NAME
);
if
(
is_admin
())
{
...
...
@@ -255,12 +255,17 @@ class Validation extends Common\Validation {
/**
* @rule Not blank
* @rule No spaces
* @returns Boolean
*/
protected
function
password
(
$val
)
{
if
(
empty
(
$val
))
{
throw
new
Exception
(
'<li>Password can not be blank</li>'
);
}
if
(
false
!==
strpos
(
$val
,
' '
))
{
throw
new
Exception
(
'<li>Password can not contain spaces</li>'
);
}
}
/**
...
...
Please
register
or
sign in
to post a comment