CHange username without give password

Discussion forum for MOD Writers regarding MOD Development.
matt9609
Registered User
Posts: 1
Joined: Mon Mar 16, 2015 11:28 am

CHange username without give password

Post by matt9609 »

Hello,

recently I activated Social login in my forum, but as this mod is configured to don't ask or give any password users who register with this method won't have the possibility of changing their e-mail, their username or even to setup a password.

In any case, I would like to keep the social login but what I would like is to offer the possibility of changing the username(which is automaticly set up by the mod) for one that the user can pick up. That would mean in changing the configuration in ucp_profile_reg_details.html and in ucp_profile.php. The thing is that I already tried to just move this line

Code: Select all

<div class="control-group"> 
	<label class="control-label"<!-- IF S_CHANGE_USERNAME -->for="username"<!-- ENDIF -->>{L_USERNAME}:</label><span class="help-block">{L_USERNAME_EXPLAIN}</span>
	<div class="controls controls-row"> 
       <!-- IF S_CHANGE_USERNAME --><input class="form-control input-sm" type="text" name="username" id="username" value="{USERNAME}" title="{L_USERNAME}" placeholder="{L_USERNAME}"><!-- ELSE --><input class="form-control input-sm" type="text" disabled="" placeholder="{USERNAME} El cambio de usuario no está permitido."><!-- ENDIF -->
	</div> 
	</div> 
from profile_reg_details.html to profile_profile_info.html and the result was in a complete disaster. Anything was displayed where the username was supposed to be, just the annoying placeholder that said **no username change is allowed**.

What I would like to do is to keep the Username field in profile_reg_details.html but changing the requisite that obliges the user to put his current password to change it. It would mean that the user just need to put his current password to modify the e-mail and the password.

Thank you for your help in advance. :D
fredericP
Registered User
Posts: 2
Joined: Thu Jun 04, 2015 1:38 pm

Re: CHange username without give password

Post by fredericP »

Hi,

We're about to post a code change to the OneAll Social Login extension to do this.

Cheers.

Return to “[3.0.x] MOD Writers Discussion”