Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #69

Merged
merged 1 commit into from
Feb 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ For a more advanced usage, you can either tweak Automated mode or use individual
When you initialize 'Auth' class you may inject property values:

```php
$app->auth = $app->add(new \Atk4\Login\Auth([
$app->auth = new \Atk4\Login\Auth([
'hasPreferences' => false, // do not show Preferences page/form
'pageDashboard' => 'dashboard', // name of the page, where user arrives after login
'pageExit' => 'goodbye', // where to send user after logout

// Oter options:
// 'hasUserMenu' => false, // will disable interaction with Admin Layout user menu
]));
]);
$app->auth->setModel(new User($app->db));
```

Expand All @@ -73,9 +73,9 @@ $app->auth->setModel(new User($app->db));
In the manual mode, no checks will be performed, and you are responsible for authenticating user yourself. This works best if you have a more complex auth logic.

``` php
$app->auth = $app->add(new \Atk4\Login\Auth([
$app->auth = new \Atk4\Login\Auth([
'check' => false
]));
]);
$app->auth->setModel(new User($app->db));


Expand Down