Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Harden email (make user unable to change)

9 years 6 months ago
  • Rob's Avatar
    Topic Author
  • Rob
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Active

ISSUE SUMMARY:
I need to configure JomSocial profile so that a user, once his/her account is created, isn't allowed to change the email on that account.
My reason is that this client's network will be private to their company (1000+ employees) and the way to limit access is to require everyone who registers to verify a @my-domain.com email address. (JomSocial already does this.) The problem is, if a user changes their email address to @other-domain.com then we have a security hole. (When his/her employment is terminated, we want to look up his/her account by their assigned company email address and remove it.)

Please point me to the file(s) needing to be configured.
Thank you!

STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER

9 years 6 months ago
Licenses:

Hi, Rob.

Copy this file:

ROOT/components/com_community/templates/jomsocial/layouts/profile/edit.php

to:

ROOT/templates/your-template/html/com_community/layouts/profile (if you don't have those folders - feel free to create them)

Then edit file change in line 159 this;

<input type="text" class="joms-input" id="jsemail" name="jsemail"

to this:
<input type="text" readOnly="readOnly" class="joms-input" id="jsemail" name="jsemail"

Result: i.imgur.com/WUtAVBf.png


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: Rob
9 years 6 months ago
  • Rob's Avatar
    Topic Author
  • Rob
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Active

Hi Michal,
Thank you very much for the very clear and smart instructions. I followed them, but the change isn't making it through to my page (/index.php?option=com_community&view=profile&task=edit&Itemid=110). I tried (at Administration||Components||JomSocial||Configuration||Templates) changing the template from jomsocial to your-template, no joy. There's probably something basic that I'm missing to get the new file to override the old. Would you have any suggestions?

(Adding readOnly="readOnly" to the email INPUT directly in the jomsocial template, does work, but is unsatisfactory because it won't be preserved through updates.)

Thank you,
Rob

9 years 5 months ago
Licenses:

HI, Rob.

This hack works 100% I tested it on my site. Did you created override file?
You don't need to change any settings in JomSocial.

Please provide us working administrator credentials.
I can't login to your site.
Please, edit your first post and add credentials to corresponding fields.

I need to take a look.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: Rob
9 years 5 months ago
  • Rob's Avatar
    Topic Author
  • Rob
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Active

Thank you for taking this interest. I edited my original post to add the login info.

9 years 5 months ago
Licenses:

HI, Rob.

But you didn't followed my instructions... I don't see overrides here: i.imgur.com/GJ9ndP8.png
Please, read my above post again and follow it.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: Rob
9 years 5 months ago
  • Rob's Avatar
    Topic Author
  • Rob
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Active

Hi Michal,
You're right, I did not do that. (I had created another path: ROOT/templates/your-template/html/com_community/layouts/profile/edit.php).

OK, I got rid of that and now the override is at ROOT/templates/socialize/html/com_community/layouts/profile/edit.php
imgur.com/6O131en

Still, my /index.php/profile/edit#detailSet allows me to edit the email address. There must still be something else I'm doing incorrectly.
Thank you for your time and attention,
Rob

9 years 5 months ago
Licenses:

Hi, Rob.

Nope... you missed one folder. Take closer look: i.imgur.com/PamOVZq.png

It is: ROOT/templates/socialize/html/com_community/profile/edit.php

It should be: ROOT/templates/socialize/html/com_community/layouts/profile/edit.php


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: Rob
9 years 5 months ago
  • Rob's Avatar
    Topic Author
  • Rob
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Active

Thank you Michal! Thank you for patiently walking me through the fix you developed. - Rob

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW