Aspen Discovery

Password Reset via Email in Aspen Discovery and Koha

You now have the ability to allow your patrons to reset their password within Aspen Discovery without being sent to Koha to reset! This is referring to the capability to change your password/PIN prior to logging in, so an email must be sent to you. You also have the ability to change your password once logged in.


In order to enable the password reset prior to login you will want to enable the ability within Aspen under Primary Configuration. Open the library system you want this ability for and scroll down to ILS/Account integration. Within User Profile you will see the option to 'Enable Forgot Password Link' - this will need to be clicked on. Once this is turned on, patrons will see the option to reset their password on the login screen.


Now that you have enabled this functionality within Aspen Discovery your PASSWORD_RESET notice in Koha needs a little tweaking.

In Koha go to Notices & slips within the tools module. If this notice has not been edited the default will have a portion directing the patron to the Koha reset link.


Also, double check the subject line and update it to not include Koha.


The part of the notice that needs to be changed looks like this:

<p>
You can now create your new password using the following link:

<a href="<<passwordreseturl>>"><<passwordreseturl>></a>
</p>

You will want that to become:

<p>
You can now create your new password using the following link:

[% passwordurl = passwordreseturl %]

[% passwordurlreplace = passwordurl.replace('https://{LIBRARY}.bywatersolutions.com/cgi-bin/koha/opac-password-recovery.pl','https://{LIBRARY}.aspendiscovery.org/MyAccount/PasswordRecovery') %]

<a href="[% passwordurlreplace %]">[% passwordurlreplace%]</a>

</p>

You will need to customize the URLs with your individual Koha OPAC and Aspen Discovery layer links. The first link in passwordurl.replace() needs to be the URL that lives in your Koha system preference OPACbaseURL with the extension

/cgi-bin/koha/opac-password-recovery.pl

while the second URL needs to be your Aspen Discovery layer URL with the extension

/MyAccount/PasswordRecovery

NOTE: The OPACBaseURL must remain the Koha OPAC URL. Do not change OPACBaseURL to your Aspen URL, or the above URL replacement will not work.


The total message will look like:

Replace:

{KohaOPACURL} and {AspenURL}

<html>
<p>This email has been sent in response to your password recovery request for the account <strong><<user>></strong>.
</p>
<p>
You can now create your new password using the following link:

[% passwordurl = passwordreseturl %]

[% passwordurlreplace = passwordurl.replace('https://{KohaOPACURL}/cgi-bin/koha/opac-password-recovery.pl','{AspenURL}/MyAccount/PasswordRecovery') %]

<a href="[% passwordurlreplace %]">[% passwordurlreplace%]</a>

</p>
<p>This link will be valid for 2 days from this email's reception, then you must reapply if you do not change your password.</p>
<p>Thank you.</p>
</html>

If you have questions about this process, feel free to reach out to your Aspen Discovery and Koha support company.

Read more by Addie Van Salisbury

Tags