Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (2)
Merge branch 'master' of gitlab.com:minds/engine into chore/update-setting-example
· 82b5cc09
Ben Hayward
authored
Jul 12, 2019
82b5cc09
missing gitlab example
· 5f618b34
Ben Hayward
authored
Jul 12, 2019
5f618b34
Hide whitespace changes
Inline
Side-by-side
Controllers/api/v1/forgotpassword.php
View file @
5f618b34
...
...
@@ -94,6 +94,12 @@ class forgotpassword implements Interfaces\Api, Interfaces\ApiIgnorePam
break
;
}
if
(
!
preg_match
(
'/[A-Z]/'
,
$password
)
||
!
preg_match
(
'/\d/'
,
$password
)
||
!
preg_match
(
'/[^a-zA-Z\d]/'
,
$password
)
||
preg_match
(
"/
\\
s/"
,
$password
))
{
$response
[
'status'
]
=
"error"
;
$response
[
'message'
]
=
"Password must have more than 8 characters. Including uppercase, numbers, special characters (ie. !,#,@), and cannot have spaces."
;
break
;
}
//$user->salt = Core\Security\Password::salt();
$user
->
password
=
Core\Security\Password
::
generate
(
$user
,
$_POST
[
'password'
]);
$user
->
password_reset_code
=
""
;
...
...
settings.example.php
View file @
5f618b34
...
...
@@ -552,3 +552,12 @@ $CONFIG->cinemr_url = 'https://cinemr.s3.amazonaws.com/cinemr_dev/';
$CONFIG
->
mongodb_servers
=
[
'minds_mongo_1'
];
$CONFIG
->
set
(
'last_tos_update'
,
1
);
$CONFIG
->
set
(
'gitlab'
,
[
'project_id'
=>
[
'mobile'
=>
'10171280'
,
// project id mobile
'front'
=>
'10152778'
,
// project id front
],
'private_key'
=>
'{{private-key}}'
]);