This commit is contained in:
Andras Bacsai 2023-06-15 09:24:24 +02:00
parent f79b3841c7
commit aa3dbdfaa2
2 changed files with 12 additions and 2 deletions

View File

@ -13,8 +13,7 @@ return new class extends Migration
{
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('uuid')->unique();
$table->string('name')->default('Your Name Here');
$table->string('name')->default('Anonymous');
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');

View File

@ -67,6 +67,17 @@
else console.log('saved');
})
</script>
@else
<script>
function changePasswordFieldType(id) {
const input = document.getElementById(id);
if (input.type === 'password') {
input.type = 'text';
} else {
input.type = 'password';
}
}
</script>
@endauth
</body>