Skip to content

create-user returns error  #79

Description

@Jordan8631

when running docker exec -it shotshare php artisan shotshare:create-user the input field doesn't ask for a handle i tried adding

            'handle' => text(
                'What is your username?',
                'John_Doe',
                required: true,
            ),

into app/Console/Commands/CreateUser.php which got rid of the error but would still not allow me to login.

root@AMP-Panel:/mnt/hdd# docker exec -it shotshare php artisan shotshare:create-user

┌ What is your name? ──────────────────────────────────────────┐
│ Jordan │
└──────────────────────────────────────────────────────────────┘

┌ What is your email? ─────────────────────────────────────────┐
jordan@epic.domain
└──────────────────────────────────────────────────────────────┘

┌ Enter Password ──────────────────────────────────────────────┐
│ ••••••••••• │
└──────────────────────────────────────────────────────────────┘

Illuminate\Database\QueryException
SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: users.handle (Connection: sqlite, SQL: insert into "users" ("name", "email", "password", "updated_at", "created_at") values (Jordan, jordan@epic.domain , blablahashypasswordthingblabla, 2024-09-09 03:14:32, 2024-09-09 03:14:32))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions