Skip to content

Conversation

@ibrahimmunir14
Copy link
Contributor

JIRA link

HEEDLS-495

Description

When the “Send welcome email” button is clicked on “Manage delegate” page, we send the delegate a welcome email including a link to set their password. The Set Password logic and pages are heavily based on, in fact, almost identical to, Reset Password.

Screenshots

Welcome Email

Welcome email sent page

Set Password page

Password set page


Developer checks

I have:

  • Run the formatter and made sure there are no IDE errors.
  • Written tests for the changes (controller, data services, services, view models etc) and manually tested my work with and without JavaScript. Full manual testing guidelines can be found here: https://softwiretech.atlassian.net/wiki/spaces/HEE/pages/6703648740/Testing
  • Updated/added documentation in Swiki and/or Readme.
  • Updated my Jira ticket with information about other parts of the system that were touched as part of the MR and have to be sanity tested to ensure nothing’s broken.
  • Scanned over my own MR to ensure everything is as expected.

<p>Dear {firstName},</p>
<p>An administrator has registered your details to give you access to the Digital Learning Solutions (DLS) platform under the centre {centreName}.</p>
<p>You have been assigned the unique DLS delegate number {candidateNumber}.</p>
<p>To complete your registration and access your Digital Learning Solutions content, please follow this link: <a href=""{setPasswordUrl}"">{setPasswordUrl}</a></p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this hyperlink read out with a screen reader? Would it be better to name it something more clear like "Click here to complete your registration..."

We have a little bit of wiggle room to change things here to be more accessible :)

namespace DigitalLearningSolutions.Web.Helpers
{
using System;
using System.Drawing;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I keep getting these caused by resharper thinking it knows better, in this case it was Icon instead of IConfiguration i think, and the cleanup code doesn't reliably remove unused usings.

.With(rp => rp.PasswordResetDateTime = createTime).Build();

// When
var resetIsValid = resetPassword.IsStillValidAt(createTime + TimeSpan.FromMinutes(4319), ResetPasswordHelpers.SetPasswordHasExpiryTime);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"HasExpiryTime" is missing a "h"

Copy link
Contributor

@stellake stellake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - just two minor comments about unused imports and a typo. No need for rereview though.

@AlexJacksonDS AlexJacksonDS merged commit 8eda5ac into master Aug 18, 2021
@AlexJacksonDS AlexJacksonDS deleted the HEEDLS-495-all-delegates-single-welcome-email branch August 18, 2021 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants