邀请账户创建屏幕将密码显示为“可选”

Installed
2.8.0.beta7
( cbd7898d1d )

Priority/Severity: 2

Platform:
desktop: latest versions of Firefox, Opera, Edge, Chrome
mobile: latest versions of Firefox, DuckDuckGo Browser, Chrome

Description:

Invite account creation screen shows password as “optional”

ACTUAL:
Password *
Minimum 10 characters (optional)

EXPECTED:
Password *
Minimum 10 characters

The bug is just cosmetic. It doesn’t change anything at the account creation process. Passwords are of course necessary for account creation, and account creation is possible. But it is confusing for users to see the password as “optional”.

The bug only occurs when creating an account over invitation links.

Reproducible steps:

  • create invitation
  • open invitation link
  • erroneous “password: optional” shows everytime on all platforms / browsers, with every invitation link

complete account creation screen via invitation link

complete standard account creation screen (without bug)

Thanks for your help!

2 个赞

The red star next to the word password shows that the field is required. It’s the hint text that says it’s optional.

Might need to check the translation string

I see its the same for the English language

image

and I found it on the locales

English:

German:

2 个赞

i dont think the code is 100% correct here.

1 个赞

Setting a password when initially accepting an invite is optional. If an invite is accepted without filling in the password field, the user will need to set a password after they log out and log back into the site.

I think that for almost all cases, setting a password when accepting an invite is more straightforward than setting the password at a later time. For that reason, I’m not sure that the password field should actually be optional. Possibly this is something that could be controlled by a site setting.

The current UI is confusing. The field is optional, but the star next to the password field name is used to mark required fields. If the field is to remain optional, the star should probably be removed from the password field on the accept-invite page.

4 个赞

I see, thanks for the clarification!

1 个赞

最近又出现了这个问题。感谢 @philipp2 的报告!

如果您通过电子邮件被邀请加入 Discourse 网站,可以通过点击邀请链接接受邀请。然后,您可以设置您的帐户,而无需指定密码。因为您的电子邮件地址已获知,所以您可以随时通过发送到您电子邮件的链接登录,添加密码,或使用网站上设置的社交登录。在这种情况下,一切都像以前一样完美运行。

随着邀请系统最近的更改,我们现在还允许创建邀请链接,然后可以将其复制并在 Discourse 外部共享。这就需要要求在受邀者登录并访问讨论之前确认电子邮件地址。我不确定为什么,但在这种情况下,如果您在不设置密码的情况下填写表单,您会收到一封不同的确认电子邮件,该电子邮件会发送一个链接,要求您在登录前设置密码。

我认为这里的解决方案是让邀请接受表单始终像常规注册表单一样运行,正如 OP 在屏幕截图中显示的那样,常规注册表单需要密码。然后,我们可以删除发送带有密码重置说明和链接的备用欢迎电子邮件的功能。

您知道这一点。我知道这一点。但是,如果不深入了解 Discourse,受邀用户是不会知道的。仅仅因为使用电子邮件进行身份验证是一种非常罕见的解决方案。所以,这不是一个 bug,这是一个 UI/UX 问题,并且在正确的类别中 :wink:

根据以下链接,兑换邀请时将需要密码:

这实际上不是一个问题,因为用户在登录前被要求设置密码。

3 个赞

此主题已在 14 小时后自动关闭。不再允许回复。