+
    *oi                     V    ^ RI Ht ^ RIt^ RIHt ^ RIHtHtHt Rt	R R lt
R R	 ltR# )
    )HTTPExceptionN)user_collection)hash_passwordverify_passwordcreate_access_tokenz^[6-9]\d{9}$c                0    V ^8  d   QhR\         R\         /#    phonepasswordstr)formats   "4/var/www/html/photoedit/app/services/auth_service.py__annotate__r   =   s     5 555    c                   "   V '       d	   V'       g   \        R RR7      h\        P                  ! \        V 4      '       g   \        R RR7      h\	        V4      ^8  d   \        R RR7      h\
        P                  ! RV /4      G Rj  xL
 pV'       d   \        R RR7      h\        V4      pRV RV/p\
        P                  ! V4      G Rj  xL
  R	R
/#  LL L
5i)  zPhone and password requiredstatus_codedetailzInvalid phone numberz&Password must be at least 6 charactersr   NzPhone already registeredr   messagezUser registered successfully)	r   rematchphone_patternlenr   find_oner   
insert_one)r   r   existinghashedusers   &&   r   register_userr"   =   s     
 0
 	

 88 
 )
 	

 8}q;
 	

 %--/  H -
 	

 8$F 	FD
 
$
$  
 	1 -$s5   C-CACCC7C
C	CCc                0    V ^8  d   QhR\         R\         /# r	   r   )r   s   "r   r   r   u   s     " """r   c                    "   \         P                  ! R V /4      G Rj  xL
 pV'       g   \        RRR7      h\        VVR,          4      '       g   \        RRR7      h\	        R V /4      pRVRRR	R
/#  LT5i)r   Nr   zInvalid phone or passwordr   r   access_token
token_typebearer
expires_iniQ )r   r   r   r   r   )r   r   r!   tokens   &&  r   
login_userr*   u   s     
 !))+  D .
 	

 Z 
 .
 	

  ! E
 	he 3s   A5A3A5A	A5)fastapir   r   app.core.databaser   app.core.securityr   r   r   r   r"   r*    r   r   <module>r/      s/   V " 	   5p"r   