Skip to content

Commit

Permalink
added Usage readme section
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Aug 20, 2017
1 parent 04003e2 commit e98fd7d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -63,6 +63,20 @@ For more details please see [src/config/params.php].
[src/config/params.php]: src/config/params.php
[src/config/web.php]: src/config/web.php

## Usage

This plugin provides behavior and configuration attaches it
to user component on beforeLogin` event.
And then the behavior validates IPs and TOTP on every login.

To use this plugin you need to provide:

- `allowed_ips` readable and writable property in your **user** component for allowed IPs functionality
- `totp_secret` readable and writable property in your **user** component for TOTP functionality

IPs and TOTP functions are independent and you can provide just one of properties to have only
corresponding functionality.

## License

This project is released under the terms of the BSD-3-Clause [license](LICENSE).
Expand Down
11 changes: 11 additions & 0 deletions docs/readme/Usage.md
@@ -0,0 +1,11 @@
This plugin provides behavior and configuration attaches it
to user component on beforeLogin` event.
And then the behavior validates IPs and TOTP on every login.

To use this plugin you need to provide:

- `allowed_ips` readable and writable property in your **user** component for allowed IPs functionality
- `totp_secret` readable and writable property in your **user** component for TOTP functionality

IPs and TOTP functions are independent and you can provide just one of properties to have only
corresponding functionality.

0 comments on commit e98fd7d

Please sign in to comment.