]> 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 8a832eb81e7d129c99add998323fb4f0436af607..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
@@ -55,8 +58,13 @@ val read_ft : string -> (string * MatitaFilesystem.matita_flag) list
 
 val write_ft : string -> (string * MatitaFilesystem.matita_flag) list -> unit
 
-val set_file_flag : string -> string -> MatitaFilesystem.matita_flag -> unit
+val set_file_flag : 
+  string -> (string * MatitaFilesystem.matita_flag option) list -> unit
 
 val add_user : string -> string -> unit
 
+val add_user_no_checkout : string -> string -> unit
+
+val check_pw : string -> string -> unit
+
 val reset : unit -> unit