From 7342c7f0e19e15ab3c7ba2133a56393c15989f08 Mon Sep 17 00:00:00 2001 From: Janik Kleinhoff Date: Mon, 8 May 2017 02:06:38 +0000 Subject: Move users to DB Summary: This will automatically take care of migrating the users from users.json; you may delete that file. Note that this removes htpasswd support. We now store (hashed) user passwords in the database. See T19 for rationale. Test Plan: Run this on a testnet for a while, try to break it. Reviewers: ilbelkyr, #antispammeta Reviewed By: ilbelkyr, #antispammeta Tags: #antispammeta, #database Differential Revision: https://dev.antispammeta.net/D2 --- lib/ASM/Config.pm | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lib/ASM/Config.pm') diff --git a/lib/ASM/Config.pm b/lib/ASM/Config.pm index ff6f745..8e336a3 100644 --- a/lib/ASM/Config.pm +++ b/lib/ASM/Config.pm @@ -19,7 +19,6 @@ sub deserialize { sub readConfig { $::settings = deserialize(io->file("$::cset/settings.json")->all); $::channels = deserialize(io->file("$::cset/channels.json")->all); - $::users = deserialize(io->file("$::cset/users.json")->all); $::mysql = deserialize(io->file("$::cset/mysql.json")->all); $::dnsbl = deserialize(io->file("$::cset/dnsbl.json")->all); $::rules = deserialize(io->file("$::cset/rules.json")->all); @@ -30,7 +29,6 @@ sub readConfig { sub writeConfig { writeMysql(); writeChannels(); - writeUsers(); writeSettings(); writeRestrictions(); writeBlacklist(); @@ -58,11 +56,6 @@ sub writeChannels { serialize($::channels) > io("$::cset/channels.json"); } -sub writeUsers { - $::settingschanged=1; - serialize($::users) > io("$::cset/users.json"); -} - sub writeSettings { $::settingschanged=1; serialize($::settings) > io("$::cset/settings.json"); -- cgit v1.2.3