Coder Social home page Coder Social logo

0xshamil / laravel-user-email-verification Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 3.0 174 KB

User email verification with laravel 5.5

Home Page: https://shamil.xyz/email-verification-with-laravel-5-5/

PHP 80.78% Vue 0.56% HTML 18.66%
laravel php7

laravel-user-email-verification's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

laravel-user-email-verification's Issues

how to login by user name and email

public function username()
{
return 'username';
}

protected function credentials(Request $request)
{
    $identity = $request->get('username');
    $field = filter_var($identity, FILTER_VALIDATE_EMAIL) ? 'email' : 'username';

    return [
        $field => $identity,
        'password' => $request->get('password'),
    ];
}

Possible typo in LoginController

Correct me if I am wrong.

App/Http/Controllers/Auth/LoginController.php go to line number 56. The error returning method should be "withErrors" and not "withError".

After changing to withErrors I am getting the flash message. But I am getting the error as raw HTML.

Please activate your account. <a href="http://localhost:8000/verify/[email protected]">Resend?</a>

The anchor tag is not getting interpreted as HTML tag.

Note: If this is a genuine issue update your blog post as well.

Pages not being rendered

Your pages are not being rendered on the browser, i cloned your repo and tried hitting 127.0.0.1:8000, and it did not render on the browser

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.