Skip to content

Commit cea4055

Browse files
artemkosatovmatweewtliokos
authored
MR-280:Separate Firewalls for Backoffice and Merchant Portal (#7446)
* MR-280: Adjusted Security module. Added SecurityGui, UserPasswordReset and UserPasswordResetExtension modules. * Removed AuthenticationMerchantPortalGui module. Introduced SecurityMerchantPortalGui, SecuritySystemUser and UserPasswordResetMail modules. Adjusted Security, SecurityGui, MerchantUser, User, UserPasswordReset and UserPasswordResetExtension modules. * Removed Auth, AuthMailConnector and AuthMailConnectorExtension modules. Adjusted MerchantUser module. Refactored shared configs. * Added tests. Co-authored-by: Stanislav Matveev <matweewster@gmail.com> Co-authored-by: Theodoros Liokos <theodoros.liokos@spryker.com>
0 parents  commit cea4055

26 files changed

+751
-0
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
; This file is for unifying the coding style for different editors and IDEs.
2+
; More information at https://editorconfig.org
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 4
8+
end_of_line = lf
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.bat]
13+
end_of_line = crlf
14+
15+
[composer.json]
16+
indent_size = 2

.gitattributes

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Define the line ending behavior of the different file extensions
2+
# Set the default behavior, in case people don't have core.autocrlf set.
3+
* text text=auto eol=lf
4+
5+
# Denote all files that are truly binary and should not be modified.
6+
*.png binary
7+
*.jpg binary
8+
*.gif binary
9+
*.jpeg binary
10+
*.zip binary
11+
*.phar binary
12+
*.ttf binary
13+
*.woff binary
14+
*.woff2 binary
15+
*.eot binary
16+
*.ico binary
17+
*.mo binary
18+
*.pdf binary
19+
*.xsd binary
20+
*.exe binary
21+
22+
# Remove files for archives generated using `git archive`
23+
codeception.yml export-ignore
24+
dependency.json export-ignore
25+
phpstan.json export-ignore
26+
phpstan.neon export-ignore
27+
psalm-report.json export-ignore linguist-generated=true
28+
tooling.yml export-ignore
29+
.coveralls.yml export-ignore
30+
.travis.yml export-ignore
31+
.editorconfig export-ignore
32+
.gitattributes export-ignore
33+
.gitignore export-ignore

.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# IDE
2+
.idea/
3+
.project/
4+
nbproject/
5+
.buildpath/
6+
.settings/
7+
*.sublime-*
8+
9+
# OS
10+
.DS_Store
11+
*.AppleDouble
12+
*.AppleDB
13+
*.AppleDesktop
14+
15+
# grunt stuff
16+
.grunt
17+
.sass-cache
18+
/node_modules/
19+
20+
# tooling
21+
vendor/
22+
composer.lock
23+
.phpunit.result.cache
24+
25+
# built client resources
26+
src/*/Zed/*/Static/Public
27+
src/*/Zed/*/Static/Assets/sprite
28+
29+
# Propel classes
30+
src/*/Zed/*/Persistence/Propel/Base/*
31+
src/*/Zed/*/Persistence/Propel/Map/*
32+
33+
# tests
34+
tests/**/_generated/
35+
tests/_output/*
36+
!tests/_output/.gitkeep

.travis.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
language: php
2+
3+
php:
4+
- 7.3
5+
- 7.4
6+
7+
matrix:
8+
fast_finish: true
9+
10+
include:
11+
- php: 7.3
12+
env: PREFER_LOWEST=1
13+
14+
env:
15+
global:
16+
- APPLICATION_ENV=development
17+
- APPLICATION_STORE=DE
18+
19+
before_install:
20+
- phpenv config-rm xdebug.ini
21+
22+
install:
23+
- COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist --no-interaction
24+
- if [[ $PREFER_LOWEST == 1 ]]; then COMPOSER_MEMORY_LIMIT=-1 composer update --prefer-lowest --prefer-stable --prefer-dist --no-interaction ; fi
25+
- if [[ $PREFER_LOWEST == 1 ]]; then COMPOSER_MEMORY_LIMIT=-1 composer require --dev dereuromark/composer-prefer-lowest; fi
26+
27+
script:
28+
- find ./src -path src -prune -o -type f -name '*.php' -print0 | xargs -0 -n1 -P4 php -l -n | (! grep -v "No syntax errors detected" )
29+
30+
- if [[ $PREFER_LOWEST == 1 ]]; then vendor/bin/validate-prefer-lowest || true; fi
31+
32+
cache:
33+
directories:
34+
- $HOME/.composer/cache/

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# UserPasswordResetMail Changelog
2+
3+
[Release Changelog](https://github.com/spryker/user-password-reset-mail/releases)

CONTRIBUTING.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
CODE CONTRIBUTION LICENSE AGREEMENT
2+
3+
BY DISPLAYING, PUBLISHING, UPLOADING OR PROMOTING (COLLECTIVELY, “POSTING”) SOURCE CODE (“SOURCE CODE”)
4+
TO SPRYKER SYSTEMS GMBH, REGISTERED WITH THE COMMERCIAL REGISTER OF THE LOWER COURT OF HAMBURG UNDER
5+
HRB 134310 (“WE”, “US” OR ”SPRYKER”), YOU AGREE TO THIS CODE CONTRIBUTION LICENSE AGREEMENT (THE “AGREEMENT”).
6+
7+
You grant us and our affiliates an irrevocable, perpetual, worldwide, royalty-free, non-exclusive, unrestricted
8+
license and right to use, reproduce and store, disseminate and otherwise exploit, modify, delete from, add to,
9+
create derivative works of, publicly perform, publicly display, reproduce, exchange parts of Source Code or combine them with
10+
other Source Code, use in data networks and distribute with or without consideration and without limitations as to the
11+
number of items via all distribution channels (and to sublicense the foregoing rights through multiple tiers of licensees)
12+
of such Source Code and any other copyright protected material for any reason and in connection with advertising and
13+
promoting our software and/or our products in any media formats and through any channels now existing or developed in
14+
the future. The transfer and assignment of rights covers any usage and exploitation rights for any unknown types of use
15+
as well as with regard to any known types of use the right to unrestrictedly make publicly available and publish,
16+
irrespective of the medium including any editions and versions and grant simple or exclusive usage, exploitation or
17+
adaptation rights to third parties.
18+
19+
Spryker may reject, refuse to post or delete any Source Code for any or no reason, including, without limitation.
20+
21+
From time to time, we may remove the Source Code permanently or temporarily, provided that even if we do remove such
22+
Source Code, we shall have no obligation to cease our other uses of the Source Code as permitted above.
23+
24+
You agree to be fully responsible for and to pay any and all royalties, fees, and any other monies owing any person or
25+
entity by reason of any Source Code posted by you.
26+
27+
Spryker respects the intellectual property of others, and requires that you do the same. Your postings and the Source Code
28+
must not infringe any copyright, patent, trademark, trade secret or other proprietary rights or other rights of any person
29+
or entity and you may not upload, embed, post, email, transmit or otherwise make available Source Code, software or any other
30+
material that that infringes such rights.
31+
32+
YOU GUARANTEE THAT: (I) YOU OWN THE SOURCE CODE POSTED BY YOU OR OTHERWISE HAVE THE RIGHT TO GRANT THE LICENSES AND RIGHTS
33+
SET FORTH ABOVE, AND (II) THE POSTING OF YOUR SOURCE CODE DOES NOT VIOLATE THE PRIVACY RIGHTS, PUBLICITY RIGHTS, CONTRACT RIGHTS,
34+
INTELLECTUAL PROPERTY OR ANY OTHER RIGHTS OF ANY PERSON OR ENTITY OR ANY APPLICABLE LAW.
35+
36+
YOU AGREE TO INDEMNIFY AND HOLD SPRYKER, ITS SUBSIDIARIES, AND AFFILIATES, AND THEIR RESPECTIVE OFFICERS, AGENTS, PARTNERS
37+
AND EMPLOYEES, HARMLESS FROM ANY LOSS, LIABILITY, COST, EXPENSE, CLAIM OR DEMAND, INCLUDING WITHOUT LIMITATION, REASONABLE
38+
ATTORNEYS’ FEES, DUE OR RELATING TO OR ARISING OUT OF THE USE OF YOUR SOURCE CODE IN VIOLATION OF THIS AGREEMENT AND/OR
39+
ARISING FROM A BREACH OF ANY TERMS OF THIS AGREEMENT AND/OR ANY BREACH OF YOUR REPRESENTATIONS AND WARRANTIES SET FORTH IN
40+
THIS AGREEMENT AND/OR ARISING OUT OF OR RELATING TO ANY SOURCE CODE THAT YOU POST.
41+
42+
This Agreement shall be governed by the laws of Germany to the exclusion of IPR (International Law) and the United Nations Convention
43+
on Contracts for the International Sale of Goods (CISG). The parties consent to the jurisdiction of the courts in Berlin (Germany).
44+
45+
This Agreement constitutes the entire agreement between you and us concerning Spryker’s use of the Source Code. This Agreement
46+
supersedes any prior verbal understanding between the parties. This Agreement may be amended only in a writing signed by an authorized officer of Spryker.

LICENSE

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
SPRYKER SYSTEMS GMBH EVALUATION LICENSE AGREEMENT
2+
3+
SPRYKER SYSTEMS GMBH, REGISTERED WITH THE COMMERCIAL REGISTER OF THE LOWER COURT OF HAMBURG UNDER HRB 134310
4+
(“WE” OR ”SPRYKER”)GRANTS YOU (THE “LICENSEE”) THE RIGHT TO USE THE SOFTWARE (AS DEFINED BELOW)
5+
UNDER THE PROVISIONS OF THIS EVALUATION LICENSE AGREEMENT (THE “AGREEMENT”).
6+
7+
The “Software” includes any software owned and distributed by Spryker under this Agreement. The Software
8+
contains elements of open source components, to which different license terms apply respectively.
9+
These open source components are needed to be installed separately.
10+
11+
Spryker grants to Licensee, during the 45-calendar-day period (the “Evaluation Period”) following the download of the Software,
12+
the nontransferable, nonexclusive limited, free of charge license to permit Licensee’s employees to internally use the Software
13+
to test and evaluate the Software in connection with potentially purchasing non-evaluation licenses to the Software.
14+
15+
Licensee shall not (i) use the Software to set up a productive live system, for development purposes or any other purposes apart
16+
from evaluating the Software; (ii) copy any part of the Software except to make one copy for back-up purposes; (iii) distribute,
17+
disclose, market, rent, lease, or transfer the Software or act as a service bureau with respect to the Software; (iv) export the
18+
Software or install it in multiple locations; (v) disclose any confidential information provided by Spryker; (vi) modify or make
19+
derivative works of the Software; or (vii) allow others to make or obtain copies of the Software.
20+
21+
THE SOFTWARE IS PROVIDED “AS-IS” AND WITHOUT WARRANTY OF ANY KIND. SPRYKER DISCLAIMS ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING
22+
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, TITLE, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. SPRYKER WILL NOT
23+
BE LIABLE FOR ANY DAMAGES ASSOCIATED WITH THE SOFTWARE, INCLUDING WITHOUT LIMITATION ORDINARY, INCIDENTAL, INDIRECT, OR CONSEQUENTIAL
24+
DAMAGES OF ANY KIND, INCLUDING BUT NOT LIMITED TO DAMAGES RELATING TO LOST DATA OR LOST PROFITS, EVEN IF SPRYKER HAS BEEN ADVISED OF
25+
THE POSSIBILITY OF SUCH DAMAGES.
26+
27+
Licensee's license to use the Software shall terminate on the earlier of (i) the expiration of the Evaluation Period, or (ii) the date
28+
both parties enter into a definitive agreement for the provision by Spryker to Licensee of a non-evaluation license to the Software.
29+
Upon termination of the license as provided above, Licensee shall promptly destroy the Software and any back-up copy of the Software
30+
made during the Evaluation Period if Spryker and the Licensee have not agreed a non-evaluation license to the Software.
31+
32+
This Agreement shall be governed by the laws of Germany to the exclusion of IPR (International Law) and the United Nations Convention
33+
on Contracts for the International Sale of Goods (CISG). The parties consent to the jurisdiction of the courts in Berlin (Germany).
34+
35+
This Agreement is not assignable or transferable by Licensee and any attempt to do so is null and void.
36+
37+
This Agreement constitutes the entire agreement between the parties concerning Licensee’s use of the Software. This Agreement supersedes
38+
any prior verbal understanding between the parties and any Licensee purchase order or other ordering document, regardless of whether such
39+
document is received by Spryker before or after execution of this Agreement. This Agreement may be amended only in a writing signed by
40+
an authorized officer of Spryker.

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# UserPasswordResetMail Module
2+
[![Build Status](https://travis-ci.org/spryker/user-password-reset-mail.svg)](https://travis-ci.org/spryker/user-password-reset-mail)
3+
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.2-8892BF.svg)](https://php.net/)
4+
5+
The module provides functionality to build and send reset user password email.
6+
7+
## Installation
8+
9+
```
10+
composer require spryker/user-password-reset-mail
11+
```
12+
13+
## Documentation
14+
15+
[Spryker Documentation](https://academy.spryker.com/developing_with_spryker/module_guide/modules.html)

composer.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "spryker/user-password-reset-mail",
3+
"type": "library",
4+
"description": "UserPasswordResetMail module",
5+
"license": "proprietary",
6+
"require": {
7+
"php": ">=7.3",
8+
"spryker/kernel": "^3.33.0",
9+
"spryker/mail": "^4.6.0",
10+
"spryker/user-password-reset-extension": "^0.1.0"
11+
},
12+
"require-dev": {
13+
"spryker/code-sniffer": "*",
14+
"spryker/propel": "*",
15+
"spryker/testify": "*",
16+
"spryker/user": "*"
17+
},
18+
"autoload": {
19+
"psr-4": {
20+
"Spryker\\": "src/Spryker/"
21+
}
22+
},
23+
"autoload-dev": {
24+
"psr-4": {
25+
"SprykerTest\\": "tests/SprykerTest/"
26+
}
27+
},
28+
"minimum-stability": "dev",
29+
"prefer-stable": true,
30+
"scripts": {
31+
"cs-check": "phpcs -p -s --standard=vendor/spryker/code-sniffer/SprykerStrict/ruleset.xml src/ tests/",
32+
"cs-fix": "phpcbf -p --standard=vendor/spryker/code-sniffer/SprykerStrict/ruleset.xml src/ tests/"
33+
},
34+
"extra": {
35+
"branch-alias": {
36+
"dev-master": "1.0.x-dev"
37+
}
38+
},
39+
"config": {
40+
"sort-packages": true
41+
}
42+
}

phpstan.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"defaultLevel": 8
3+
}

0 commit comments

Comments
 (0)