diff --git a/src/identity/interaction/email-password/handler/RegistrationHandler.ts b/src/identity/interaction/email-password/handler/RegistrationHandler.ts index 62b548e1c4..354ecad547 100644 --- a/src/identity/interaction/email-password/handler/RegistrationHandler.ts +++ b/src/identity/interaction/email-password/handler/RegistrationHandler.ts @@ -135,7 +135,11 @@ export class RegistrationHandler extends HttpHandler { if (result.createPod) { podBaseUrl = podBaseUrl ?? this.identifierGenerator.generate(result.podName!); try { - await this.podManager.createPod(podBaseUrl, { ...result.data, webId: result.webId! }); + await this.podManager.createPod(podBaseUrl, { + ...result.data, + podBaseUrl: podBaseUrl.path, + webId: result.webId! + }); } catch (error: unknown) { // In case pod creation errors we don't want to keep the account if (result.register) { diff --git a/templates/identity/email-password/register-response.html.ejs b/templates/identity/email-password/register-response.html.ejs index 44401194ef..3bbe29e723 100644 --- a/templates/identity/email-password/register-response.html.ejs +++ b/templates/identity/email-password/register-response.html.ejs @@ -13,30 +13,45 @@

You are signed up

+

+ Welcome to Solid. + We wish you an exciting experience! +

+ + <% if (createPod) { %> +

Your new pod

+

+ Your new pod is located at <%= podBaseUrl %>. +
+ You can store your documents and data there. +

+ <% } %> + <% if (createWebId) { %> +

Your new WebID

Your new WebID is <%= webId %>. +
+ You can use this identifier to interact with Solid pods and apps.

<% } %> + <% if (register) { %> +

Your new login

- You can now identify as <%= webId %> - on this server using <%= email %>. + You can log in + with your WebID <%= webId %> + on this server via your email address <%= email %>.

<% if (!createWebId) { %>

- Make sure you add the triple + You will need to add the triple <%= `<${webId}> <${oidcIssuer}>.`%> - to your WebID profile. + to your existing WebID document <%= webId %> + to indicate that you trust this server as a login provider for your WebID.

<% } %> <% } %> - <% if (createPod) { %> -

- Your new pod has been created - and can be found at <%= podBaseUrl %>. -

- <% } %>