Dave S, thank you, I think also. But how can I get hash on server?
my controller:
    form = FORM(
        DIV(
            DIV(
                LABEL(
                    'Пароль:',
                    _for='abit_pass',
                    _style='font-weight: 400;'
                ),
                INPUT(
                    _type='password',
                    _id='abit_pass',
                    _name='abit_pass',
                    _class='form-control',
                    requires=[IS_NOT_EMPTY('Введите 
значение'),IS_STRONG(min=10, special=2, upper=2),CRYPT()]
                ),
                _class='col-md-4 mb-3'
            ),
            DIV(
                LABEL(
                    'Повторите пароль:',
                    _for='abit_r_pass',
                    _style='font-weight: 400;'
                ),
                INPUT(
                    _type='password',
                    _class='form-control',
                    _name='abit_r_pass',
                    _id='abit_r_pass',
                    requires=[IS_NOT_EMPTY('Введите 
значение'),IS_STRONG(min=10, special=2, 
upper=2),IS_EQUAL_TO(request.vars.abit_pass, error_message='Пароли должны 
совпадать!'),CRYPT()]
                ),
                _class='col-md-4 mb-3'
            ),
            _class='form-group row'
        ),
        DIV(
            DIV(
                BUTTON(
                    DIV(
                        SPAN(
                            _class='glyphicon glyphicon-send'
                        ),
                        P(
                            'Отправить',
                            _class='p-btn'
                        ),
                        _class='my-btn-conteiner'
                    ),
                    _value='Далее',
                    _id="edu",
                    _type='submit',
                    _style='width: 100%;',
                    _class='good-btn'
                ),
                _class='col center',
                _style='margin-bottom: 1rem;'
            ),
            _class='form-group row'
        )
    )
    if form.process(formname='form',onvalidation=check_agreement).accepted:
    #How can I get hash and maybe random salt HERE???
    return dict(form=form,statement=statement)




пятница, 12 октября 2018 г., 12:15:52 UTC+3 пользователь Dave S написал:
>
>
>
> On Thursday, October 11, 2018 at 11:59:26 PM UTC-7, Константин Комков 
> wrote:
>>
>> I thought that after using CRYPT() and pushing submit button I have had 
>> hash in variable request.vars.password, but I received my password.
>>
>
> crypt() runs on the server, AIUI, so the POST would not have the hash.
>
> /dps
>  
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to