diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..b58b603
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,5 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
diff --git a/.idea/battle_club_git.iml b/.idea/battle_club_git.iml
new file mode 100644
index 0000000..24643cc
--- /dev/null
+++ b/.idea/battle_club_git.iml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..9f07350
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/server/auth/authService.js b/server/auth/authService.js
new file mode 100644
index 0000000..f0a6e79
--- /dev/null
+++ b/server/auth/authService.js
@@ -0,0 +1,133 @@
+// /server/auth/authService.js
+const bcrypt = require('bcryptjs'); // Для хеширования паролей
+const db = require('../core/db'); // Путь к вашему модулю для работы с базой данных (в папке core)
+
+const SALT_ROUNDS = 10; // Количество раундов для генерации соли bcrypt
+
+/**
+ * Регистрирует нового пользователя.
+ * @param {string} username - Имя пользователя.
+ * @param {string} password - Пароль пользователя.
+ * @returns {Promise