Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Commit 0c3ed4e

Browse files
Merge pull request #44 from DarkGhostHunter/master
Minor fixes.
2 parents 3072728 + 5ca720f commit 0c3ed4e

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ Alternatively, you can use a custom controller action to also include a link to
228228
```php
229229
public function notice()
230230
{
231-
return view('2fa.notice', [
231+
return view('laraguard::notice', [
232232
'url' => url('account/settings')
233233
]);
234234
}

resources/lang/en/messages.php

+2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<?php
22

33
return [
4+
'title' => 'Two Factor Authentication',
45
'required' => 'Two Factor Authentication is required.',
6+
'back' => 'Go back',
57
'continue' => 'To continue, open up your Authenticator app and issue your 2FA code.',
68
'enable' => 'You need to enable Two Factor Authentication.',
79

resources/views/layout.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
77
<meta http-equiv="X-UA-Compatible" content="ie=edge">
88
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
9-
<title>Two Factor Authentication</title>
9+
<title>{{ trans('laraguard::messages.title') }}</title>
1010
<style>
1111
#box-container {
1212
min-height: 100vh;
@@ -37,7 +37,7 @@
3737
</div>
3838
<div class="text-black-50 small text-center">
3939
<a href="javascript:history.back()" class="btn btn-sm text-secondary btn-link">
40-
&laquo; Go back
40+
&laquo; {{ trans('laraguard::messages.back') }}
4141
</a>
4242
</div>
4343
</div>

src/LaraguardServiceProvider.php

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public function boot(Repository $config, Router $router, Dispatcher $dispatcher,
3636
$this->loadViewsFrom(__DIR__ . '/../resources/views', 'laraguard');
3737
$this->loadFactoriesFrom(__DIR__ . '/../database/factories');
3838
$this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'laraguard');
39-
$this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
4039

4140
$this->registerListener($config, $dispatcher);
4241
$this->registerMiddleware($router);

0 commit comments

Comments
 (0)