- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1
 
HEEDLS-495 All delegates - send single welcome email #536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HEEDLS-495 All delegates - send single welcome email #536
Conversation
currently without an actual working link to set password
And fix incorrect tag-text bug!
        
          
                DigitalLearningSolutions.Web/Controllers/SetPasswordController.cs
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/ViewDelegateController.cs
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | <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> | 
There was a problem hiding this comment.
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 :)
        
          
                DigitalLearningSolutions.Data.Tests/Services/RegistrationServiceTests.cs
          
            Show resolved
            Hide resolved
        
              
          
                DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/ViewDelegateController.cs
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/ViewDelegateController.cs
          
            Show resolved
            Hide resolved
        
              
          
                DigitalLearningSolutions.Web/Controllers/SetPasswordControllerBase.cs
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                DigitalLearningSolutions.Web/Controllers/SetPasswordControllerBase.cs
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                DigitalLearningSolutions.Web/Controllers/SetPasswordController.cs
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | namespace DigitalLearningSolutions.Web.Helpers | ||
| { | ||
| using System; | ||
| using System.Drawing; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed?
There was a problem hiding this comment.
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); | 
There was a problem hiding this comment.
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"
There was a problem hiding this 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.
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: