Learn Buffalo in Go - Part 7 Middleware and User Authentication

Поделиться
HTML-код
  • Опубликовано: 13 июл 2024
  • Part 7. Middleware and User Authentication
    Topics Covered:
    00:00 - Intro to user authentication flows
    2:04 - Middleware example in Buffalo
    2:42 - Buffalo plugins and buffalo-auth
    4:01 - Demo app with buffalo-auth
    4:46 - Add password fields to User
    6:26 - Add handlers
    6:46 - Middleware for authentication
    7:13 - Forms for user auth
    7:54 - Applying middleware to routes
    8:44 - Middleware to load data
    11:08 - Buffalo patterns for middleware
    12:16 - User auth templates
    Buffalo auth plugin:
    github.com/gobuffalo/buffalo-...
    Github repo:
    github.com/briwagner/learn-bu...
    This video was re-uploaded to fix audio problems.
    Original: • Learn Buffalo in Go - ...
    Series playlist:
    • Web application develo...
  • ХоббиХобби

Комментарии • 2

  • @bandapallimonish1529
    @bandapallimonish1529 3 месяца назад

    Can we change the appearance of warning messages in c.Flash() and customize it sothat it should automatically disappear after some time?

    • @bwagner_dev
      @bwagner_dev  3 месяца назад

      Yes, you can modify the template partial for Flash messages in the templates/ directory. The default Buffalo setup is to use Bootstrap v3. So you can add to what is there, with some Javascript to trigger auto-remove after a timeout. Or replace Bootstrap entirely with another library or custom code that does something like that. Just to be clear: there is nothing in Buffalo or Bootstrap (that I know of) to make that work, e.g. just adding a class tag or something. But you should be able to add that functionality with a small amount of effort.