We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17851
    • 213 Posts
    I'm using Revo Login snippet. I want to give users ability to change their username. I've added it to the UpdateProfile form but I'm not getting the value. Is it available for the user to update?
      Mark Macatee
      President
      Power 10 Solutions
      http://www.power10solutions.com
      • 3109 ☆ A M B ☆
      • 894 Posts
      Can you post your code so we can see what might be the issue?
        Benjamin Marte
        Interactive Media Developer
        Follow Me on Twitter | Visit my site | Learn MODX
        • 17851
        • 213 Posts
        [[!UpdateProfile? &validate=`fullname:required,email:required:email` ]]
        
        <div class="update-profile">
            <div class="updprof-error">[[+error.message]]</div>
            [[+login.update_success:if=`[[+login.update_success]]`:is=`1`:then=`[[%login.profile_updated? &namespace=`login` &topic=`updateprofile`]]`]]
         
            <form class="form" action="[[~[[*id]]]]" method="post">
                <input type="hidden" name="nospam" value="" />
         <label>Username:</label><input type="text" name="username" value="[[+username]]" />
                <label for="fullname">[[!%login.fullname? &namespace=`login` &topic=`updateprofile`]]
                    <span class="error">[[+error.fullname]]</span>
                </label>
                <input type="text" name="fullname" id="fullname" value="[[+fullname]]" />
         
                <label for="email">[[!%login.email]]
                    <span class="error">[[+error.email]]</span>
                </label>
                <input type="text" name="email" id="email" value="[[+email]]" />
         
                <label for="phone">[[!%login.phone]]
                    <span class="error">[[+error.phone]]</span>
                </label>
                <input type="text" name="phone" id="phone" value="[[+phone]]" />
         
                <label for="mobilephone">[[!%login.mobilephone]]
                    <span class="error">[[+error.mobilephone]]</span>
                </label>
                <input type="text" name="mobilephone" id="mobilephone" value="[[+mobilephone]]" />
         
                <label for="fax">[[!%login.fax]]
                    <span class="error">[[+error.fax]]</span>
                </label>
                <input type="text" name="fax" id="fax" value="[[+fax]]" />
         
                <label for="address">[[!%login.address]]
                    <span class="error">[[+error.address]]</span>
                </label>
                <input type="text" name="address" id="address" value="[[+address]]" />
         
                <label for="country">[[!%login.country]]
                    <span class="error">[[+error.country]]</span>
                </label>
                <input type="text" name="country" id="country" value="[[+country]]" />
         
                <label for="city">[[!%login.city]]
                    <span class="error">[[+error.city]]</span>
                </label>
                <input type="text" name="city" id="city" value="[[+city]]" />
         
                <label for="state">[[!%login.state]]
                    <span class="error">[[+error.state]]</span>
                </label>
                <input type="text" name="state" id="state" value="[[+state]]" />
         
                <label for="zip">[[!%login.zip]]
                    <span class="error">[[+error.zip]]</span>
                </label>
                <input type="text" name="zip" id="zip" value="[[+zip]]" />
         
                <label for="website">[[!%login.website]]
                    <span class="error">[[+error.website]]</span>
                </label>
                <input type="text" name="website" id="website" value="[[+website]]" />
         
                <br class="clear" />
         
                <div class="form-buttons">
                    <input type="submit" name="login-updprof-btn" value="[[!%login.update_profile]]" />
                </div>
            </form>
        </div>
          Mark Macatee
          President
          Power 10 Solutions
          http://www.power10solutions.com
          • 3109 ☆ A M B ☆
          • 894 Posts
          I don't think you can modify a users username with UpdateProfile and if you can it's not properly documented.

          Sorry I can't be of much help I thought you meant you couldn't update the users full name.
            Benjamin Marte
            Interactive Media Developer
            Follow Me on Twitter | Visit my site | Learn MODX
            • 17851
            • 213 Posts
            So is it possible to update username with any of the Login snippets at all? If not, does someone know why? And if not, is there another way to allow the web user to update his/her username?

              Mark Macatee
              President
              Power 10 Solutions
              http://www.power10solutions.com