[core] Change pw length logger to debug

This commit is contained in:
hagi 2020-07-16 13:54:51 +02:00 committed by dl6tom
parent bb14db155c
commit 8391ea0b04

View file

@ -82,7 +82,7 @@ async def admin_register(values: BodyAdmin):
logger.debug(f'register_token={register_token}') logger.debug(f'register_token={register_token}')
# TODO implement check to see if email already is in database # TODO implement check to see if email already is in database
if len(values.password) < 8: if len(values.password) < 8:
logger.info('Password is too short') logger.debug('Password is too short')
raise HTTPException( raise HTTPException(
status_code=status.HTTP_400_BAD_REQUEST, detail='Password is too short' status_code=status.HTTP_400_BAD_REQUEST, detail='Password is too short'
) )