Не работает сниппет UpdateProfile

Здравствуйте, господа.

Проблема в следующем. На сайте установлен пакет Login, регистрация и авторизация работают адекватно, но вот вывод информации о пользователе, а также вывод формы для редактирования данных пользователя — никак не хочется работать, и показывает главную страницу. Логи чистые, показывает главную страницу. modx revo 2.2.6, login 1.8.1.
В чём может быть дело?

Вызываю также, как и на rtfm:
<div class="update-profile">
    <div class="updprof-error"></div>
    `:is=`1`:then=``
 
    <form class="form" action="" method="post">
        <input type="hidden" name="nospam" value="" />
 
        <label for="fullname">
            <span class="error"></span>
        </label>
        <input type="text" name="fullname" id="fullname" value="" />
 
        <label for="email">
            <span class="error"></span>
        </label>
        <input type="text" name="email" id="email" value="" />
 
        <label for="phone">
            <span class="error"></span>
        </label>
        <input type="text" name="phone" id="phone" value="" />
 
        <label for="mobilephone">
            <span class="error"></span>
        </label>
        <input type="text" name="mobilephone" id="mobilephone" value="" />
 
        <label for="fax">
            <span class="error"></span>
        </label>
        <input type="text" name="fax" id="fax" value="" />
 
        <label for="address">
            <span class="error"></span>
        </label>
        <input type="text" name="address" id="address" value="" />
 
        <label for="country">
            <span class="error"></span>
        </label>
        <input type="text" name="country" id="country" value="" />
 
        <label for="city">
            <span class="error"></span>
        </label>
        <input type="text" name="city" id="city" value="" />
 
        <label for="state">
            <span class="error"></span>
        </label>
        <input type="text" name="state" id="state" value="" />
 
        <label for="zip">
            <span class="error"></span>
        </label>
        <input type="text" name="zip" id="zip" value="" />
 
        <label for="website">
            <span class="error"></span>
        </label>
        <input type="text" name="website" id="website" value="" />
 
        <br class="clear" />
 
        <div class="form-buttons">
            <input type="submit" name="login-updprof-btn" value="" />
        </div>
    </form>
</div>
Sadykh Sadykhov
20 апреля 2013, 15:33
modx.pro
2 632
0

Комментарии: 4

Sadykh Sadykhov
20 апреля 2013, 19:34
0
Код неадекватно опубликовался. Ещё раз:

[[!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 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>
    алексей
    06 июля 2018, 13:07
    0
    добрый день, решили проблему?
    а то у меня такая же проблема
    алексей
    06 июля 2018, 15:05
    0
    нашел решение
    [[+login.update_success:notempty=`blabla`]]
      Алексей
      13 февраля 2023, 14:57
      0
      Добрый день! Как решили проблему? При вызове сниппета
      [[!UpdateProfile?
      &submitVar=`login-updprof-btn`
      &validate=`fullname:required`
      ]]
      Показывает главную страницу.
        Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
        4