@ -335,6 +335,10 @@
( utils:set-alert "No file provided. Favicon not uploaded."
"missing-data" )
( redirect "/site-settings" ) )
( ( not ( str:contains?
"image" ( caddr favicon-file ) :ignore-case t ) )
( utils:set-alert "Uploaded file is not an image." "invalid-data" )
( redirect "/site-settings" ) )
( t ( storage:store-with-raw-path
"static/images/favicon.png" favicon-file )
( utils:set-alert "Favicon saved." "success" )
@ -385,6 +389,10 @@
( utils:set-alert "No file provided. Site logo not uploaded."
"missing-data" )
( redirect "/site-settings" ) )
( ( not ( str:contains?
"image" ( caddr site-logo ) :ignore-case t ) )
( utils:set-alert "Uploaded file is not an image." "invalid-data" )
( redirect "/site-settings" ) )
( t ( storage:store-with-raw-path
"static/images/site-logo.png" site-logo )
( utils:set-alert "Site logo saved." "success" )
@ -498,8 +506,9 @@
( cond ( ( find t ( mapcar
#' utils:string-is-nil-or-empty?
` ( , new-password , password-check ) ) )
( utils:set-alert "Missing new password data. Make sure both password boxes are filled out."
"missing-data" )
( utils:set-alert
"Missing new password data. Make sure both password boxes are filled out."
"missing-data" )
( redirect "/user/edit" ) )
( ( not ( string= new-password password-check ) )
( utils:set-alert "Passwords don't match." "invalid-data" )
@ -595,11 +604,11 @@
( user::username-of ( auth:get-current-user ) ) )
( hermetic:logout
;; Successful log-out -- after account deleted
;; (session data cleared) .
;; Session data cleared .
( progn ( auth:flash-gethash :id ningle:*session* )
( redirect "/" ) )
;; Failed log-out -- after account deleted
;; (session data persits) .
;; Session data persits .
( progn ( utils:set-alert
"Unable to delete session data." "error" )
( redirect "/" ) ) ) ) ) )
@ -893,7 +902,7 @@
;; is a hard-coded utility feature of the
;; website. The thumbnail is created so
;; large-scale images are not used at the
;; thumbnail, in creasing download sizes.
;; thumbnail, de creasing download sizes.
( when ( str:contains? "image" ( cadddr item ) :ignore-case t )
( utils:create-thumbnail
"media" ( utils:format-filename ( caddr item ) ) nil ) ) )