Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
152
Issues
152
List
Boards
Labels
Service Desk
Milestones
Merge Requests
46
Merge Requests
46
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Compare Revisions
e070c7f595d64107cd5c5aebabbde8bfbc98d87d...5f618b343e550e473fd97500c74e8c6bfd363a1c
Source
5f618b343e550e473fd97500c74e8c6bfd363a1c
Select Git revision
...
Target
e070c7f595d64107cd5c5aebabbde8bfbc98d87d
Select Git revision
Compare
Commits (2)
Merge branch 'master' of gitlab.com:minds/engine into chore/update-setting-example
· 82b5cc09
Ben Hayward
authored
15 minutes ago
82b5cc09
missing gitlab example
· 5f618b34
Ben Hayward
authored
13 minutes ago
5f618b34
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
forgotpassword.php
Controllers/api/v1/forgotpassword.php
+6
-0
settings.example.php
settings.example.php
+9
-0
No files found.
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
=
""
;
...
...
This diff is collapsed.
Click to expand it.
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}}'
]);
This diff is collapsed.
Click to expand it.