Skip to content

Commit

Permalink
Add namespace to fix conflicting namespace bug (#10)
Browse files Browse the repository at this point in the history
* Change Member.php’s namespace to fix conflicting namespace bug

* Update configuration.md with new namespace change
  • Loading branch information
Althegreat24 authored and oddnoc committed Mar 27, 2017
1 parent f47acb4 commit 23c669e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _config/2fa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Name: 2fa
---
Member:
extensions:
- '_2fa\Member'
- '_2fa\Extensions\Member'
Injector:
MemberLoginForm:
class: '_2fa\LoginForm'
Expand Down
2 changes: 1 addition & 1 deletion code/extension/Member.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace _2fa;
namespace _2fa\Extensions;

use Rych\OTP\TOTP;
use Rych\OTP\Seed;
Expand Down
4 changes: 2 additions & 2 deletions docs/en/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All configuration is done through the [Configuration API](http://doc.silverstrip

## Options

* `_2fa\Member.totp_window` -- The number of tokens in the window users
* `_2fa\Extensions\Member.totp_window` -- The number of tokens in the window users
have to get a correct token. If this is 0, then only the current token is
accepted. **Note:** this is the total size of the window, not the size either
side of the current token. For example, the default value of 2 allows for users
Expand All @@ -15,7 +15,7 @@ All configuration is done through the [Configuration API](http://doc.silverstrip

## Example configuration
```yaml
_2fa\Member:
_2fa\Extensions\Member:
totp_window: 2
```
Expand Down

0 comments on commit 23c669e

Please sign in to comment.