fix: support password entry for /join-manually (#306)

Closes https://github.com/ssb-ngi-pointer/go-ssb-room/issues/234.

Co-authored-by: decentral1se <cellarspoon@riseup.net>
This commit is contained in:
decentral1se 2022-08-22 10:52:35 +02:00 committed by GitHub
parent 92681a9c49
commit 6aaea32407
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 1 deletions

View File

@ -186,6 +186,8 @@ InviteInsertWelcome = "Du kannst mit deine SSB-ID eine Einladung anfordern. Dana
InviteConsumedTitle = "Einladung angenommen!"
InviteConsumedWelcome = "Du bist jetzt Mitglied dieses Raums. Wenn du eine Multiserver-Adresse benötigst, kannst du die folgende kopieren und einfügen: "
InviteConsumedSetPassword = "Du kannst jetzt ein Fallback-Passwort für Ihr Konto erstellen:"
InviteConsumedSetPasswordButton = "Passwort erstellen"
# alias resolution
##################

View File

@ -190,6 +190,8 @@ InviteInsertWelcome = "You can claim your invite by inserting your SSB ID below.
InviteConsumedTitle = "Invite accepted!"
InviteConsumedWelcome = "You are now a member of this room. If you need a multiserver address to connect to the room, you can copy-paste the one below:"
InviteConsumedSetPassword = "You can now create an account fallback password:"
InviteConsumedSetPasswordButton = "Create password"
# alias resolution
##################

View File

@ -19,5 +19,16 @@ SPDX-License-Identifier: CC-BY-4.0
<span
class="bg-gray-200 py-1 px-2 mb-8 w-64 font-mono break-all"
>{{.MultiserverAddress}}</span>
<span
class="text-center"
>{{i18n "InviteConsumedSetPassword" }}<br /></span>
<span
class="w-64 my-6 text-center"
><a
class="self-start shadow rounded h-8 flex flex-row justify-center items-center text-gray-100 bg-pink-600 hover:bg-pink-700 focus:outline-none focus:ring-2 focus:ring-pink-600 focus:ring-opacity-50"
href="{{urlTo "members:change-password"}}"
>{{i18n "InviteConsumedSetPasswordButton" }}</a></span>
</div>
{{end}}
{{end}}