]> matita.cs.unibo.it Git - helm.git/blobdiff - matitaB/matita/matitaAuthentication.mli
Matitaweb: secure SHA-256 encryption for passwords.
[helm.git] / matitaB / matita / matitaAuthentication.mli
index feb13983776c4144a55b02a261d8744d5f22f8d1..d2b1f591018d004052cef1a0c5ca7bfe65ed6499 100644 (file)
 type session_id = Uuidm.t
 
 exception UsernameCollision of string
+exception InvalidPassword
 
-val lookup_user : string -> (string * session_id option)
+val lookup_user : string -> (string * string * session_id option)
 
 val user_of_session : session_id -> string
 
+val get_users : unit -> string list
+
 val create_session : string -> session_id
 
 val get_session_owner : session_id -> string
@@ -60,4 +63,8 @@ val set_file_flag :
 
 val add_user : string -> string -> unit
 
+val add_user_no_checkout : string -> string -> unit
+
+val check_pw : string -> string -> unit
+
 val reset : unit -> unit