eXist-db / tamboti

Tamboti Metadata Framework: framework for cataloguing bibliographical material and other resource types such as web sites, images and videos.
1 stars 8 forks source link

Replace xmldb:get-current-user(), as it is deprecated, with security:get-user-credential-from-session()[1] #106

Closed claudius108 closed 10 years ago

claudius108 commented 10 years ago

Solved.

jensopetersen commented 10 years ago

Wouldn't it be better to code security:get-user-credential-from-session()[1] as session:get-attribute($security:SESSION_USER_ATTRIBUTE) First retrieving username and password and then discarding the password seems a little silly (I know I started using it …).

claudius108 commented 10 years ago

Right!

Claudius

On Sat, Dec 28, 2013 at 5:09 PM, Jens Østergaard Petersen < notifications@github.com> wrote:

Wouldn't it be better to code security:get-user-credential-from-session()[1] as session:get-attribute($security:SESSION_USER_ATTRIBUTE) First retrieving username and password and then discarding the password seems a little silly (I know I started using it …).

— Reply to this email directly or view it on GitHubhttps://github.com/eXist-db/tamboti/issues/106#issuecomment-31298211 .

http://kuberam.ro http://kuberam.ro/art

jensopetersen commented 10 years ago

We will fix that later.