]> 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 3bd1bc0aa7217b5eb074ec9769bacd32340f7e3a..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
 
@@ -49,4 +54,17 @@ val serialize : unit -> unit
 
 val deserialize : unit -> unit
 
+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 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