Giter Club home page Giter Club logo

lumen-api-starter's Issues

verify the `demo` user in database seed

At first I tried to login , and after a few hours, I found that:

You need to verify the user before you can login.
If the email settings are correct you should receive an email. You can also use

$user = App\User::where('email', -yourEmail-)->first();
$user->verify();

Originally posted by @stefanvanherwijnen in #29 (comment)

Multiple users tables

I know that it may not be an issue (and I apologize in advance for this), but i'd like to know if there's a way to have multiple users tables, like "providers", where this provider can login in a different subdomain, the main idea is to decentralize the login, as part of the software business model.

Access protected routes via Paseto token

Hi there,

I would like to know how I can access the protected routes after loggin in with my email and password. I do receive the token but when I post it to /auth/user I only get 401.

Best regards
linatt

Turn of user email verification

Sorry to bother you here ...
First time using Lumen, only used Laravel before.

The current setup requires the user to verify their email.

In Laravel I can remove the "Illuminate\Contracts\Auth\MustVerifyEmail" contract on the User Model, but I can't find it in this installation. Can you please direct me to where I can disable the email verification?

(Took me a while to figure out why the seeded [email protected] returned the email/password error")

Please update DatabaseSeeder.php

It is easier to log in with the seeded demo user if it is verified.

<?php

use App\User;
use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $this->call([
            RolesSeeder::class,
        ]);
        $user = User::createFromValues('John Doe', '[email protected]', 'password')->assignRole('administrator');
        $user->verify();
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.