Code Monkey home page Code Monkey logo

Comments (11)

 avatar commented on July 1, 2024

It runs at localhost:4000/admin

from hexo-admin.

jaredly avatar jaredly commented on July 1, 2024

My current usage is in conjunction with a statically generated site, so the admin only runs locally, and I don't need password protection. If someone wants to implement some auth, I certainly wouldn't be opposed.

from hexo-admin.

wodCZ avatar wodCZ commented on July 1, 2024

+1

from hexo-admin.

jaredly avatar jaredly commented on July 1, 2024

What do you envision this looking like?
I see a few options.

The easiest is probably to have a hashed password entered as a config variable and then you input the password when you get to /admin, and the hashed version of the password is sent as token auth or something.

SHA3 for javascript is available here

from hexo-admin.

wodCZ avatar wodCZ commented on July 1, 2024

Storing strongly hashed password in config would be good enough and easy to implement I think.
Also, please consider adding admin path as another variable to config file. That shouldn't be hard and you'll get some security through obscurity.

from hexo-admin.

jaredly avatar jaredly commented on July 1, 2024

mmmm I'd hope that no one would rely on that... but yeah, easy to add.
PRs welcome :) if not I'll probably get to it in the next few weeks.
On Sat Jan 24 2015 at 2:47:11 AM Martin Janeček [email protected]
wrote:

Storing strongly hashed password in config would be good enough and easy
to implement I think.
Also, please consider adding admin path as another variable to config
file. That shouldn't be hard and you'll get some security through obscurity.


Reply to this email directly or view it on GitHub
#13 (comment).

from hexo-admin.

wodCZ avatar wodCZ commented on July 1, 2024

I'd like to PR, but I'm PHP dev, not experienced in JS - consumer only, sorry :)

from hexo-admin.

bourvill avatar bourvill commented on July 1, 2024

+1 for login protection

from hexo-admin.

yarax avatar yarax commented on July 1, 2024

I've sent a pull request with base authentication. See, please

from hexo-admin.

jaredly avatar jaredly commented on July 1, 2024

Thanks to @yarax for getting this going! Password protection is now available in the just-published 0.3.0 version on npm. Let me know how it goes! Information on how to get it running is available in the Readme.

from hexo-admin.

bourvill avatar bourvill commented on July 1, 2024

Amazing ! Thx!

from hexo-admin.

Related Issues (20)

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.