[GeoNetwork-users] Forget password on login page

Hi

  1. How do I get rid of the ‘Forget password’ option here?

[cid:image001.jpg@...1687...]
You manage to do it in your demo website:

[cid:image002.jpg@...1687...]

Thanks.
Peck
-----------------------------------------------------------------------------------------------------
Peck Choo Tan I Analyst Programmer
GNS Science I Te Pῡ Ao
1 Fairway Drive, Avalon 5010, PO Box 30368, Lower Hutt 5040, New Zealand
Ph 04 570 4739 I Mob 021 2178684
http://www.gns.cri.nz/ | Email: p.tan@...1298...

Notice: This email and any attachments are confidential and may not be used, published or redistributed without the prior written consent of the Institute of Geological and Nuclear Sciences Limited (GNS Science). If received in error please destroy and immediately notify GNS Science. Do not copy or disclose the contents.

(attachments)

image001.jpg
image002.jpg

Hi Peck

That panel is displayed when the mail configuration is defined in the
settings, see this code:

https://github.com/geonetwork/core-geonetwork/blob/3.4.x/web-ui/src/main/resources/catalog/templates/signin.html#L83-L84

Some options:

1) Update the page to remove/comment the panel.

2) Remove the data-ng-show and add *style="display:none"*

3) Add below
https://github.com/geonetwork/core-geonetwork/blob/3.4.x/web-ui/src/main/resources/catalog/js/LoginController.js#L57
a property to control the display of the panel:

$scope.showRecoverPasswordPanel = false;

And update
https://github.com/geonetwork/core-geonetwork/blob/3.4.x/web-ui/src/main/resources/catalog/templates/signin.html#L83-L84
to use it:

<div class="panel panel-default"

data-ng-show="gnConfig['system.feedback.mailServer.hostIsDefined'] &&
showRecoverPasswordPanel">

4) Other option more general that can be committed in GeoNetwork is to add
a new setting to control the display of the panel, would be similar to 3),
but using a configurable setting.

Regards,
Jose García

On Fri, Aug 17, 2018 at 7:39 AM, Peck-Choo Tan <P.Tan@anonymised.com> wrote:

Hi

  1. How do I get rid of the ‘Forget password’ option here?

[cid:image001.jpg@anonymised.com]
You manage to do it in your demo website:

[cid:image002.jpg@anonymised.com]

Thanks.
Peck
------------------------------------------------------------
-----------------------------------------
Peck Choo Tan I Analyst Programmer
GNS Science I Te Pῡ Ao
1 Fairway Drive, Avalon 5010, PO Box 30368, Lower Hutt 5040, New Zealand
Ph 04 570 4739 I Mob 021 2178684
http://www.gns.cri.nz/ | Email: p.tan@anonymised.com

Notice: This email and any attachments are confidential and may not be
used, published or redistributed without the prior written consent of the
Institute of Geological and Nuclear Sciences Limited (GNS Science). If
received in error please destroy and immediately notify GNS Science. Do not
copy or disclose the contents.

------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/
projects/geonetwork

--

*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/&gt;Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv&gt;
<https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;Please consider the
environment before printing this email.*