Updated CMS code.

Separated code to have a lib and an example.
Improved design, fixed a few issues related to folder location.

This is still experimental and require more work to be really friendly to use.
This commit is contained in:
Jocelyn Fiat
2013-01-31 15:33:24 +01:00
parent 40ea982293
commit ce469b6ede
136 changed files with 1841 additions and 299 deletions

View File

@@ -0,0 +1,16 @@
note
description: "Summary description for {CMS_AUTH_ENGINE}."
author: ""
date: "$Date$"
revision: "$Revision$"
deferred class
CMS_AUTH_ENGINE
feature -- Status
valid_credential (u,p: READABLE_STRING_32): BOOLEAN
deferred
end
end

View File

@@ -0,0 +1,32 @@
note
description: "Summary description for {CMS_STORAGE_AUTH_ENGINE}."
author: ""
date: "$Date$"
revision: "$Revision$"
class
CMS_STORAGE_AUTH_ENGINE
inherit
CMS_AUTH_ENGINE
create
make
feature {NONE} -- Initialization
make (a_storage: like storage)
do
storage := a_storage
end
storage: CMS_STORAGE
feature -- Status
valid_credential (u,p: READABLE_STRING_32): BOOLEAN
do
Result := storage.is_valid_credential (u, p)
end
end