The reset password button generates a temporary random password which expires after 1 day and is sent to the email address of the user. The temporary password does not work as soon as a new password has been set. The trytond-admin asks the email address for admin user and has an option to set the admin email and to reset its password. issue7037 review41761002
43 lines
982 B
Python
43 lines
982 B
Python
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
|
# this repository contains the full copyright notices and license terms.
|
|
from ..pool import Pool
|
|
|
|
from .group import *
|
|
from .user import *
|
|
from .ir import *
|
|
from . import routes
|
|
|
|
__all__ = ['register', 'routes']
|
|
|
|
|
|
def register():
|
|
Pool.register(
|
|
Group,
|
|
User,
|
|
LoginAttempt,
|
|
UserAction,
|
|
UserGroup,
|
|
Warning_,
|
|
UserApplication,
|
|
UserConfigStart,
|
|
UIMenuGroup,
|
|
ActionGroup,
|
|
ModelFieldGroup,
|
|
ModelButtonGroup,
|
|
ModelButtonRule,
|
|
ModelButtonClick,
|
|
RuleGroupGroup,
|
|
Lang,
|
|
SequenceType,
|
|
SequenceTypeGroup,
|
|
Sequence,
|
|
SequenceStrict,
|
|
ModuleConfigWizardItem,
|
|
module='res', type_='model')
|
|
Pool.register(
|
|
UserConfig,
|
|
module="res", type_='wizard')
|
|
Pool.register(
|
|
EmailResetPassword,
|
|
module='res', type_='report')
|