Migrate server setup functionality
Changes:
- Check if admin is set up
- Redirect to admin setup if not already done
- Create admin password
- Login as admin and get access token for future requests
- Add a router for setup
- Middleware to prevent any route from being accessible on the server till the admin setup is done
GitLab: #80
GitLab: #73
Change-Id: I8b7ecab68f6b4d5c6313ce2e72a4ae4fdef9eda0
diff --git a/client/src/locale/en/translation.json b/client/src/locale/en/translation.json
index 69e8e0e..3185015 100644
--- a/client/src/locale/en/translation.json
+++ b/client/src/locale/en/translation.json
@@ -70,6 +70,14 @@
"registration_form_submit_button": "REGISTER",
"registration_form_to_login_text": "Already have an account?",
"registration_form_to_login_link": "LOG IN",
+ "logout": "LOGOUT",
+ "setup_login_title": "Jami web node setup",
+ "setup_login_welcome": "Welcome to the Jami web node setup.",
+ "setup_login_admin_creation": "Let's start by creating a new administrator account to control access to the server configuration.",
+ "password_placeholder": "Password",
+ "setup_login_password_placeholder_creation": "New password",
+ "setup_login_password_placeholder_repeat": "Repeat password",
+ "admin_creation_submit_button": "CREATE ADMIN ACCOUNT",
"severity_error": "Error",
"severity_success": "Success"
}