3 ms·
I'm running on a Macbook that is not at all set up for PHP, so no "users.ini" file. I did this ugly hack. <?php class BasicAuth { public functi
by wware 5y ago
I'm running on a Macbook that is not at all set up for PHP, so no "users.ini" file. I did this ugly hack.
<?php
class BasicAuth {
public function __construct($passwordFile)
{
}
public function auth() {
return true;
}
public function hash($password) {
return "hello";
}
}
I can create notes and search them, only possible name is "Untitled", found no controls for formatting (h1/h2/h3, italic, bold, code block, lists, etc). Nice start, could benefit from a better UE and more features.
- codazoda 5y agoEDIT: I've fixed this. Yeah, sorry about all that, this thing is very early in it's life... The users.ini file is a simple ini with my list of users. I put that file in place. I put it outside of the root so that you can't read it. I thought I had explained this somewhere, but clearly I haven't. I need to fix this. My plan with the name is to pull the first line of the text file, remove pounds and things, and use that as the "dynamic" name. I haven't needed to implement that for myself just yet, so it's on the todo list.