Skip to content
This repository was archived by the owner on Jan 10, 2020. It is now read-only.
This repository was archived by the owner on Jan 10, 2020. It is now read-only.

Starter user registration is broken #203

@baradhili

Description

@baradhili

when user clicks on activation link, laravel does not activate account and instead asks them to resend activation email..

Solution:
change UserService
Do not return $userMeta->user()->first() as this will return the first user in the db

Instead

`public function findByActivationToken($token)
{
$userMeta = $this->userMeta->where('activation_token', $token)->first();

    if ($userMeta) {
        return $userMeta->user();
    }

    return false;
}

`

I should probably fork and submit PRs instead :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions