Changesets can be listed by changeset number.
The Git repository is here.
Changeset 191
Removed the login_hop mechanism. It was crude and only Typo used it;
the Typo 4.1 integration has taken a cleaner approach that removes the
requirement for the feature.
Renamed the 'logged out' image to a more logical name. The application
controller now caches the logged in and out images. When using FCGI or
a comparable execution model for Hub, this means that the images only
get loaded once and are thereafter served from RAM.
- Comitted by: rool
- Date: Wednesday April 04 18:32:37 2007 (over 17 years ago)
Affected files:
- rool/rails/hub/trunk/public/images/icons/logged_out.png
- rool/rails/hub/trunk/public/images/icons/not_logged_in.png
- rool/rails/hub/trunk/app/controllers/account_controller.rb (diff)
rool/rails/hub/trunk/app/controllers/account_controller.rb:
prev. | current | |
layout 'default.rhtml' | ||
5 | # Cache the logged in and out PNG images in RAM; they're only small. | |
6 | ||
7 | @@logged_in_image = File.read("#{LOGIN_ICONS}/logged_in.png") | |
8 | @@logged_out_image = File.read("#{LOGIN_ICONS}/logged_out.png") | |
9 | ||
# Action permissions for this class as a class variable, exposed | ||
# to the public through a class method. | ||
... | ... | |
# even if the HTML stays cached. | ||
# | ||
def login_indication | ||
380 | | |
381 | ||
@headers['Pragma'] = 'no-cache' | ||
@headers['Cache-Control'] = 'no-cache, must-revalidate' | ||
385 | | |
388 | send_data hubssolib_logged_in? ? @@logged_in_image : @@logged_out_image, | |
:type => 'image/png', | ||
:disposition => 'inline' | ||
end | ||
... | ... | |
end | ||
end | ||
409 | | |
410 | | |
411 | | |
412 | | |
413 | | |
414 | | |
415 | | |
416 | | |
417 | | |
418 | | |
419 | | |
420 | | |
421 | ||
422 | | |
423 | | |
424 | | |
425 | ||
426 | | |
427 | | |
428 | | |
429 | | |
430 | | |
431 | | |
432 | | |
433 | ||
434 | | |
435 | | |
436 | | |
437 | | |
438 | | |
439 | | |
440 | | |
441 | ||
442 | | |
443 | | |
444 | ||
445 | | |
446 | | |
447 | | |
448 | ||
449 | | |
450 | | |
451 | | |
452 | ||
453 | | |
454 | | |
455 | | |
456 | | |
457 | ||
protected | ||
# Pass a HubSsoLib::User object. Returns an equivalent User Model object. |