From 7930aef2e18cf5da4f69df61a4dcaf4f7fb66696 Mon Sep 17 00:00:00 2001 From: Amadeous Date: Tue, 4 Apr 2017 16:56:39 +0200 Subject: [PATCH] Add default admin user --- config.default.php | 2 +- scripts/ulogger.sql | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/config.default.php b/config.default.php index 792ad5e..c3ee687 100755 --- a/config.default.php +++ b/config.default.php @@ -63,7 +63,7 @@ $public_tracks = 0; // admin user who has access to all users locations // none if empty -$admin_user = ""; +$admin_user = "admin"; // Default interval in seconds for live auto reload $interval = 10; diff --git a/scripts/ulogger.sql b/scripts/ulogger.sql index d3875a5..38883c1 100755 --- a/scripts/ulogger.sql +++ b/scripts/ulogger.sql @@ -92,4 +92,11 @@ ALTER TABLE `tracks` -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; \ No newline at end of file + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; + +-- +-- Content of table `users` +-- + +INSERT INTO `users` (`id`, `login`, `password`) VALUES +(1, 'admin', '$2y$10$7OvZrKgonVZM9lkzrTbiou.CVhO3HjPk5y0W9L68fVwPs/osBRIMq'), \ No newline at end of file