#| -*-Scheme-*-
-$Id: db.scm,v 1.2 2004/11/19 14:52:24 cph Exp $
+$Id: db.scm,v 1.3 2004/11/22 19:45:23 cph Exp $
Copyright 2003,2004 Massachusetts Institute of Technology
" (" (db-quote user-name)
", " (db-quote first-names)
", " (db-quote last-name)
- ", " (db-quote (encrypt-password password))
+ ", " (db-quote password)
", " "FALSE"
", " (if enabled? "TRUE" "FALSE")
")")
(define (db-change-user-password user-name password)
(guarantee-known-user user-name)
(db-run-cmd "UPDATE users"
- " SET password = " (db-quote (encrypt-password password))
+ " SET password = " (db-quote password)
" WHERE user_name = " (db-quote user-name)))
\f
(define (db-user-real-name user-name)
" SET " flag-name " = " (if value "TRUE" "FALSE")
" WHERE user_name = " (db-quote user-name)))
\f
-(define (encrypt-password password)
+(define (db-encrypt-password password)
(let ((pw-line
(call-with-output-string
(lambda (port)
#| -*-Scheme-*-
-$Id: xdoc.pkg,v 1.1 2004/11/01 19:21:05 cph Exp $
+$Id: xdoc.pkg,v 1.2 2004/11/22 19:45:27 cph Exp $
Copyright 2004 Massachusetts Institute of Technology
db-clear-submitter
db-delete-global-value!
db-delete-persistent-value!
+ db-encrypt-password
db-generate-password
db-get-global-value
db-get-persistent-value