Commit graph

18 commits

Author SHA1 Message Date
Las Zenow
1536d97d8d Update to use pg/v10 2020-11-30 19:03:31 +00:00
Las Zenow
383214ee19 Add search by date 2020-03-23 11:35:10 +00:00
endangered
f836f40f89 Provide command line variables for initializing an admin user. Previously to get admin access on a fresh install I had to create a user in the web interface (to make sure the password hash/salt is properly setup) then manually change the role in the database to 'admin' using a postgresql client. This was a pain in the ass, and I think there really needs to be an easy way to create the admin user on the initial deployment. This solution fixes this, and adds documentation to the README file on how to use those variables. 2019-11-25 06:58:44 +09:30
Las Zenow
defaa2ae0b Update to pg v9 2019-11-06 06:53:41 +00:00
Las Zenow
00d21d8340 Treat uses as case-insensitive 2018-12-24 10:13:58 +00:00
Las Zenow
dffd67a9fe Improve usability of the user registration 2018-04-09 20:52:40 +00:00
Las Zenow
c0a70a18e1 Add book list support in the database 2018-04-09 00:15:58 +00:00
Las Zenow
6f906ccae4 Add user management interface 2018-04-08 10:55:30 +00:00
Las Zenow
6cd5b1bc5e Register the date of the last login 2018-04-08 08:39:10 +00:00
Las Zenow
5315870dbd Be more strict validating user names 2018-04-08 08:20:18 +00:00
Las Zenow
de58f0251e Fix setting password
We were not acting on the error returning, and the sql sintax was wrong.
2018-02-22 09:57:37 +00:00
Las Zenow
c9b967a2ef Create tables, indexes, functions and triggers programatically 2017-09-21 21:05:06 +00:00
Las Zenow
83ab1b461d Expose AddRaw[User|News] for scripting 2017-05-21 22:48:43 +00:00
Las Zenow
e0854aa001 Using master pg library 2017-05-21 11:05:37 +00:00
Las Zenow
42ccf52718 trigram indexes 2017-05-21 11:02:35 +00:00
Las Zenow
b62b303995 Helper functions for the migration scripts 2017-05-21 10:59:31 +00:00
Las Zenow
e72de38725 [WIP] migration to psql
TODO:
[ ] stats
[ ] indexes
2017-05-21 10:44:43 +00:00
Las Zenow
9d1f1ad5c0 Move all the code to a lib folder 2016-05-02 21:41:40 -04:00
Renamed from database/users.go (Browse further)