Skip to content

Commit 5beacca

Browse files
authored
Merge pull request #1213 from TechnologyEnhancedLearning/Develop/Fixes/TD-5708-Users-Cannot-Upload-files-on-Test-and-Live-Learning-Hub-Due-to-Password-Prompt-Loop
TD-5708:Users Cannot Upload files on Test and Live Learning Hub Due t…
2 parents e446a00 + 73aa0c2 commit 5beacca

File tree

1 file changed

+2
-1
lines changed
  • LearningHub.Nhs.WebUI/Scripts/vuesrc/data

1 file changed

+2
-1
lines changed

LearningHub.Nhs.WebUI/Scripts/vuesrc/data/user.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ const IsSystemAdmin = async function (): Promise<boolean[]> {
6767
};
6868

6969
const IsValidUser = async function (currentPassword: string): Promise<boolean[]> {
70-
var IsValidUser = `/api/User/ConfirmPassword/${currentPassword}`;
70+
let encodedPassword = encodeURIComponent(currentPassword);
71+
var IsValidUser = `/api/User/ConfirmPassword/${encodedPassword}`;
7172
return await AxiosWrapper.axios.get<boolean[]>(IsValidUser)
7273
.then(response => {
7374
return response.data;

0 commit comments

Comments
 (0)