Skip to content

Autologin (or Remember me) #4774

@rifleh700

Description

@rifleh700

Is your feature request related to a problem? Please describe.

  • We can't implement fully secure "Remember me" feature and save default /login command at same time.
  • We have only one way to implement secure "Remember me" - it's to use passwordHash(pass) as account password (https://wiki.multitheftauto.com/wiki/PasswordHash - look example)

Alternative way is to save encoded user pass on his pc, which is not secure

Describe the solution you'd like

Add logIn function without password with disabled ACL right by default

  • good for custom "Remember me" implementations (everyone can implement his own custom "Remember me" feature (OTP, Access tokens, etc))
  • simple

Describe alternatives you've considered

new functions generateAccountAccessToken and logInByAccessToken

  • not so simple
  • only one implementation

Additional context

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions