Flask Blog: Part 3 (Securing Admin Page With Login System)

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2024
  • In this video I show you how to secure your Flask Admin page with a simple login system so that only people who are authorized can access the CMS. Hope you enjoy this video and sorry for the bad quality, I will try to improve it in the future. If you have any suggestions for future videos, comment down below.
    Github link for video's code: github.com/ahn...
    Flask Docs: flask.palletsp...
    Flask-Admin Docs: flask-admin.re...
    Flask SQLAlchemy Docs: flask-sqlalche...
    Login Page Template: colorlib.com/w...
    My Website: ahnafzamil.com
    Also check out my Discord bot Exo:
    exo.ahnafzamil... (Official Website for Exo)
    discordbotlist...
    bots.ondiscord...
    Join Exo's Discord server : / discord
    Join my official help server: / discord
    Patreon: / ahnafzami
    l#Flask #Python #MySQL #SQLAlchemy #Database #Blog #WebDevelopment #Login #Flask-Login #Flask-Admin #CMS

ความคิดเห็น • 13

  • @jonathanvanwersch8500
    @jonathanvanwersch8500 3 ปีที่แล้ว +1

    Hey--great video. I've got a question about setting up a password. If I were to push my code to github and make the repo public, the password I set in the code to access the admin page would be readily viewable by anyone. How would I go about setting up an encrypted password?

    • @devguyahnaf
      @devguyahnaf  3 ปีที่แล้ว +1

      you could actually put your admin password in a separate table in the database or you could put the admin password in a text file and add that text file to the gitignore. Then access that text file or database table in python and compare the passwords

    • @jonathanvanwersch8500
      @jonathanvanwersch8500 3 ปีที่แล้ว

      @@devguyahnaf Thanks! Really appreciate the quick reply. I went with the gitignore option as I reckon a database table is a bit overkill for a single user.

    • @devguyahnaf
      @devguyahnaf  3 ปีที่แล้ว

      @@jonathanvanwersch8500 No problem man! I agree with your .gitignore choice but I told you about the database table since a lot of people think that using a txt file is a bit dumb

  • @imraninfrarote
    @imraninfrarote 3 ปีที่แล้ว

    I was struggling a bit to secure the admin page for my website. Seems like I found what I wanted

  • @fral.2708
    @fral.2708 2 ปีที่แล้ว

    Best tutorial in the Tube! Thank you Sir from Rome.

  • @TheJuanmanuel03
    @TheJuanmanuel03 3 ปีที่แล้ว

    Congratulations for this amazing video! thanks it helps me a lot.

  • @mofiathamin4908
    @mofiathamin4908 4 ปีที่แล้ว

    when i go to link 127.0.0.1:5000/admin/ i have this error 403 Forbidden You don't have the permission to access the requested resource. It is either read-protected or not readable by the server. what i can do please

    • @devguyahnaf
      @devguyahnaf  4 ปีที่แล้ว +1

      It's because you are not logged in. In the video I showed you how to implement login system and if you are not logged in, it would show 403 error. Just log into the admin page following the steps in the video and it will not show error

  • @gueddoudjaafer435
    @gueddoudjaafer435 3 ปีที่แล้ว

    thnx pro, u saved me

  • @webmasterpro4072
    @webmasterpro4072 3 ปีที่แล้ว

    Poo.thats ossum

  • @yaminijadhav483
    @yaminijadhav483 3 ปีที่แล้ว

    thank you!

  • @mofiathamin4908
    @mofiathamin4908 4 ปีที่แล้ว

    Waw