Mangatsu / server

🌕 Media server for storing, tagging and viewing doujinshi, manga, art collections and other galleries with API and user control. Written in Go.
GNU General Public License v3.0
43 stars 6 forks source link

Parse or save the UserAgent of login requests to have a meaningful session name #26

Closed CrescentKohana closed 2 years ago

CrescentKohana commented 2 years ago

Either

https://github.com/Mangatsu/server/blob/d5e49ae09508adf12ee31939a6d642b238e64da7/pkg/api/user.go#L74

CrescentKohana commented 2 years ago

This is a frontend issue as next-auth always sends node-fetch/1.0 (+https://github.com/bitinn/node-fetch) as the user agent.

Made the name a bit user-friendlier here https://github.com/Mangatsu/web/commit/1589f6a913a5aade35b3baf8b94cfb6d9d2c1470