[Bug]: On new self hosted stack, login is not possible except through admin ui
What happened?
New self hosted stack, in 'flags' I disable the guest editing mode and I get, on the homepage:
Your server version 0.22.4 is not compatible with current client. Please upgrade your server to 0.23.0 or higher to use this client.
Looking at all the package versions, even though the tag is 0.24.6, the base version is 0.22.4, but the check here: https://github.com/toeverything/AFFiNE/blob/canary/packages/frontend/core/src/components/hooks/affine/use-selfhost-login-version-guard.tsx checks that it's greater than 0.23.0. This doesn't seem right.
Distribution version
Web (https://app.affine.pro)
App Version
No response
What browsers are you seeing the problem on if you're using web version?
No response
Are you self-hosting?
- [x] Yes
Self-hosting Version
0.24.1
Relevant log output
Anything else?
No response
Issue Status: 🆕 *Untriaged
*🆕 Untriaged
The team has not yet reviewed the issue. We usually do it within one business day. Docs: https://github.com/toeverything/AFFiNE/blob/canary/docs/issue-triaging.md
This is an automatic reply by the bot.
+1 - I have the same issue. Maybe the change in the above commit wasn't supposed to take effect before 0.23? Either way, this change fixed it for me:
--- a/packages/frontend/core/src/components/hooks/affine/use-selfhost-login-version-guard.tsx
+++ b/packages/frontend/core/src/components/hooks/affine/use-selfhost-login-version-guard.tsx
@@ -5,7 +5,7 @@ import semver from 'semver';
const rules = [
{
- min: '0.23.0',
+ min: '0.22.4',
should fixed after 0.25.1