Skip to content

Commit 73aa0c2

Browse files
TD-5708:Users Cannot Upload files on Test and Live Learning Hub Due to Password Prompt Loop
1 parent e446a00 commit 73aa0c2

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)