now my question is how can I add some security and need username and password once i click on shutdown button.
I am using
but if i do not use then i cant shutdown the pi at allsudo
here is the code snippet
Code: Select all
@app.route("/shutdown") def shutdown(): call("sudo nohup shutdown -h now", shell=True)