diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 92b04ce..e4c17c7 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,15 +4,10 @@
-
+
-
-
-
-
-
-
+
@@ -48,34 +43,34 @@
- {
+ "keyToString": {
+ "DefaultGoTemplateProperty": "Go File",
+ "Go Build.Backend.executor": "Run",
+ "Go 构建.Backend.executor": "Run",
+ "RunOnceActivity.ShowReadmeOnStart": "true",
+ "RunOnceActivity.go.formatter.settings.were.checked": "true",
+ "RunOnceActivity.go.migrated.go.modules.settings": "true",
+ "RunOnceActivity.go.modules.automatic.dependencies.download": "true",
+ "RunOnceActivity.go.modules.go.list.on.any.changes.was.set": "true",
+ "git-widget-placeholder": "master",
+ "go.import.settings.migrated": "true",
+ "go.sdk.automatically.set": "true",
+ "last_opened_file_path": "/Users/littlesheep/Documents/Projects/Hydrogen/Passport/pkg/internal/server/api",
+ "node.js.detected.package.eslint": "true",
+ "node.js.selected.package.eslint": "(autodetect)",
+ "nodejs_package_manager_path": "npm",
+ "run.code.analysis.last.selected.profile": "pProject Default",
+ "settings.editor.selected.configurable": "preferences.pluginManager",
+ "ts.external.directory.path": "/Users/littlesheep/Documents/Projects/Hydrogen/Passport/web/node_modules/typescript/lib",
+ "vue.rearranger.settings.migration": "true"
},
- "keyToStringList": {
- "DatabaseDriversLRU": [
- "postgresql"
+ "keyToStringList": {
+ "DatabaseDriversLRU": [
+ "postgresql"
]
}
-}]]>
+}
@@ -151,7 +146,6 @@
-
@@ -176,7 +170,8 @@
-
+
+
true
diff --git a/pkg/internal/server/api/avatar_api.go b/pkg/internal/server/api/avatar_api.go
index 3bc27c1..2d0be4f 100644
--- a/pkg/internal/server/api/avatar_api.go
+++ b/pkg/internal/server/api/avatar_api.go
@@ -94,7 +94,7 @@ func getAvatar(c *fiber.Ctx) error {
if content := user.GetAvatar(); content == nil {
return c.SendStatus(fiber.StatusNotFound)
} else {
- return c.Redirect(*content, fiber.StatusNotFound)
+ return c.Redirect(*content, fiber.StatusFound)
}
}
@@ -107,6 +107,6 @@ func getBanner(c *fiber.Ctx) error {
if content := user.GetBanner(); content == nil {
return c.SendStatus(fiber.StatusNotFound)
} else {
- return c.Redirect(*content, fiber.StatusNotFound)
+ return c.Redirect(*content, fiber.StatusFound)
}
}
diff --git a/web/src/components/UserMenu.vue b/web/src/components/UserMenu.vue
index 0786ed8..4fe1467 100755
--- a/web/src/components/UserMenu.vue
+++ b/web/src/components/UserMenu.vue
@@ -2,7 +2,7 @@
-
+
diff --git a/web/src/views/dashboard.vue b/web/src/views/dashboard.vue
index f86f4cd..27a996d 100755
--- a/web/src/views/dashboard.vue
+++ b/web/src/views/dashboard.vue
@@ -1,14 +1,14 @@