mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms-api-rest: fix login service when user is not correct
This commit is contained in:
committed by
Darío Lodeiros
parent
c71b33580b
commit
3dfef55685
@@ -36,7 +36,7 @@ class PmsPartnerService(Component):
|
||||
)
|
||||
|
||||
if not user_record:
|
||||
ValidationError(_("user or password not valid"))
|
||||
raise ValidationError(_("user or password not valid"))
|
||||
user_record.with_user(user_record)._check_credentials(user.password, None)
|
||||
PmsApiRestUserOutput = self.env.datamodels["pms.api.rest.user.output"]
|
||||
expiration_date = time.time() + 36660
|
||||
|
||||
Reference in New Issue
Block a user