Jump to content

Recommended Posts

Posted

Hi,

I've just set up HAP for my school, and was wondering if it was possible to list password requirements (e.g. different character types, etc.) on the change password ("me") page?

I can't seem to find where to edit that page

Posted

It looks like the change password page is javascript, specifically the file 'hap.web.js' (starts at line 159) which can be found in the scripts folder of your HAP install.

 

You could try adding some text into the javascript like below:

 

$("#" + data[i].Data.Group).append('
Password Requirements HereChange My PasswordCurrent Password: New Password: Confirm Password: ');

 

But that's just a basic change and from what I can see if you add too much text it messes up the javascript and starts putting the content onto the main page but I'm sure someone with better javascript knowledge than me can do something better!

  • Thanks 1
Posted

Thank you, NokiX! :)

I replaced line 160 with the following:

$("#" + data[i].Data.Group).append('Change My PasswordCurrent Password: New Password: Confirm Password: 
Password Requirements:

Year 7-9 Student passwords must:contain at least seven characters and a maximum of 32 charactersbe different from your last two passwordsYear 10 students + Staff passwords must:contain at least seven characters and a maximum of 32 characterscontain at least one character from at least three of the following sets:uppercase letter (A-Z)lowercase letter (a-z)numeral (0-9)special character such as ()~`#$*&@^be different from your last eight passwordsnot contain either your first or last name');

and that seemed to do the trick.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...