-
-
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
1 parent
fe9350a
commit 1f2b263
Showing
44 changed files
with
619 additions
and
613 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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Ask a question | ||
url: https://github.com/empuxa/laravel-pin-login/discussions/new?category=q-a | ||
url: https://github.com/empuxa/laravel-totp-login/discussions/new?category=q-a | ||
about: Ask the community for help | ||
- name: Request a feature | ||
url: https://github.com/empuxa/laravel-pin-login/discussions/new?category=ideas | ||
url: https://github.com/empuxa/laravel-totp-login/discussions/new?category=ideas | ||
about: Share ideas for new features | ||
- name: Report a security issue | ||
url: https://github.com/empuxa/laravel-pin-login/security/policy | ||
url: https://github.com/empuxa/laravel-totp-login/security/policy | ||
about: Learn how to notify us for sensitive bugs |
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
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
26 changes: 0 additions & 26 deletions
26
database/migrations/2023_06_23_150000_add_pin_columns_to_users_table.php
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
database/migrations/2023_06_23_150000_add_totp_columns_to_users_table.php
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,26 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
public function up(): void | ||
{ | ||
Schema::table(app(config('totp-login.model'))->getTable(), static function (Blueprint $table): void { | ||
$table->string(config('totp-login.columns.code'))->nullable(); | ||
$table->timestamp(config('totp-login.columns.code_valid_until'))->nullable(); | ||
}); | ||
} | ||
|
||
public function down(): void | ||
{ | ||
Schema::table(app(config('totp-login.model'))->getTable(), static function (Blueprint $table): void { | ||
$table->dropColumn([ | ||
config('totp-login.columns.code'), | ||
config('totp-login.columns.code_valid_until'), | ||
]); | ||
}); | ||
} | ||
}; |
26 changes: 0 additions & 26 deletions
26
database/migrations/add_pin_columns_to_users_table.php.stub
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
database/migrations/add_totp_columns_to_users_table.php.stub
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,26 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
public function up(): void | ||
{ | ||
Schema::table(app(config('totp-login.model'))->getTable(), static function (Blueprint $table): void { | ||
$table->string(config('totp-login.columns.code'))->nullable(); | ||
$table->timestamp(config('totp-login.columns.code_valid_until'))->nullable(); | ||
}); | ||
} | ||
|
||
public function down(): void | ||
{ | ||
Schema::table(app(config('totp-login.model'))->getTable(), static function (Blueprint $table): void { | ||
$table->dropColumn([ | ||
config('totp-login.columns.code'), | ||
config('totp-login.columns.code_valid_until'), | ||
]); | ||
}); | ||
} | ||
}; |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<?php | ||
|
||
return [ | ||
'handle_pin_request' => [ | ||
'handle_code_request' => [ | ||
'success' => 'Login erfolgreich.', | ||
'error' => [ | ||
'rate_limit' => 'Zu viele falsche Anfragen. Ihre Account wurde für :seconds Sekunden geblockt.', | ||
'expired' => 'Der eingegebene PIN ist nicht mehr gültig. Wir haben Ihnen einen neuen PIN per E-Mail geschickt.', | ||
'wrong_pin' => 'Der PIN ist ungültig. Sie haben noch :attempts_left Versuche bis wir Ihren Account temporär blockieren.', | ||
'expired' => 'Der eingegebene Code ist nicht mehr gültig. Wir haben Ihnen einen neuen Code per E-Mail geschickt.', | ||
'wrong_totp' => 'Der Code ist ungültig. Sie haben noch :attempts_left Versuche bis wir Ihren Account temporär blockieren.', | ||
], | ||
], | ||
]; |
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
Oops, something went wrong.