-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vladislav Lyshenko
committed
Jun 3, 2015
1 parent
84f6e5d
commit 807540d
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Демо проект - авторизация | ||
|
||
## Требования | ||
|
||
1. Операционная система Linux | ||
1. Nginx, PHP-FPM via socket | ||
3. Composer | ||
|
||
## Установка | ||
|
||
1. Код проекта должна располагаться в директории `/var/www/demo_auth` | ||
2. В файле `/etc/nginx/nginx.conf` в секции `http` нужно подключить файл `/var/www/demo_auth/config/nginx.conf` | ||
3. Перезапустить `nginx` | ||
4. В файле `/etc/hosts` нужно прописать `127.0.0.1 auth.local` | ||
5. Запустить в директории проекта `composer install` | ||
6. Открыть в браузере `auth.local` | ||
|
||
## Основные моменты демонстрационного проекта | ||
|
||
* Форма авторизации с двумя полями логина и пароля | ||
* После авторизации показывается страница профиля с приветствием с указанием логина пользователя, форма логина недоступна | ||
* После выхода страница профиля перенаправляет на страницу входа | ||
* После 3 подряд неверных вводов пароля пользователя банит на 5 минут | ||
* Базы данных не используются, все данные хранятся в текстовых файлах | ||
* Использован фреймворк Yii 2 |