tel8618217223380 / mollify

Automatically exported from code.google.com/p/mollify
0 stars 0 forks source link

Guest/Download User Mode #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In addition to single and multi user modes, I would like to propose 
guest/download-user mode. In 
guest/download user mode the guest would be able to browse and download files 
without 
authentication. Thus, no login prompt would be shown but the user would be 
provided with read-
only access to a public area.

If the user desires, they may click a login button and provide credentials to 
log into their account. 
Once logged in they may browse both the public and private folders. They may 
also have upload 
access if granted by the admin in the private and/or public spaces.

Original issue reported on code.google.com by gregory....@gmail.com on 24 Jun 2009 at 5:29

GoogleCodeExporter commented 9 years ago

Original comment by samuli.j...@gmail.com on 24 Jun 2009 at 5:35

GoogleCodeExporter commented 9 years ago
I would also like this feature. Almost a "must have"

Original comment by Ray.Sven...@gmail.com on 16 Sep 2010 at 2:04

GoogleCodeExporter commented 9 years ago
Ditto for this.

Original comment by djenkins...@gmail.com on 27 Jun 2011 at 7:50

GoogleCodeExporter commented 9 years ago
Issue 326 has been merged into this issue.

Original comment by samuli.j...@gmail.com on 24 Nov 2011 at 5:50

GoogleCodeExporter commented 9 years ago

Original comment by samuli.j...@gmail.com on 24 Nov 2011 at 5:50

GoogleCodeExporter commented 9 years ago
What is the future of this feature? 
I am putting together a project where this is a must have. I really like 
Mollify but this would be a show stopper.

Original comment by korou...@gmail.com on 27 Mar 2012 at 11:02

GoogleCodeExporter commented 9 years ago
I tried faking it with ExternalInterface but with no success.
http://code.google.com/p/mollify/wiki/ExternalInterface
Is it possible that EI is outdated? Or what am I doin'g wrong?

I get this when I directly copy-past the example(and change the user id to some 
existing user id).
Warning: require_once(include/Session.class.php): failed to open stream: No 
such file or directory in 
/srv/http/mollify/backend/external/MollifyExternalInterface.class.php on line 30

Call Stack:
    0.0003     330560   1. {main}() /srv/http/mollify/index.php:0
    0.0008     377228   2. MollifyExternalInterface() /srv/http/mollify/index.php:4
    0.0008     378128   3. MollifyExternalInterface->__construct() /srv/http/mollify/backend/external/MollifyExternalInterface.class.php:19

Fatal error: require_once(): Failed opening required 
'include/Session.class.php' (include_path='backend/:.:/usr/share/pear') in 
/srv/http/mollify/backend/external/MollifyExternalInterface.class.php on line 30

Call Stack:
    0.0003     330560   1. {main}() /srv/http/mollify/index.php:0
    0.0008     377228   2. MollifyExternalInterface() /srv/http/mollify/index.php:4
    0.0008     378128   3. MollifyExternalInterface->__construct() /srv/http/mollify/backend/external/MollifyExternalInterface.class.php:19

Original comment by korou...@gmail.com on 27 Mar 2012 at 1:55

GoogleCodeExporter commented 9 years ago
Yes, ExternalInterface seems to be outdated, as last version changed the 
session handling. I'll update it as soon as possible.

For the guest account, I guess I could make a quick solution for this: in 
configuration you could define which user account is a guest account, and this 
account would not require authentication, otherwise it would act like any other 
user (you can control what guest can see and do with default user permissions). 
Only you would have to either create your own login window which had guest 
login option, or instruct user to enter guest username (but would not require 
password).

This would be quite easy to do. RIght now I'm in middle of total UI rewrite 
(version 2.0), so making any changes to the old login screen etc is not likely, 
and would have to wait for 2.1.

Original comment by samuli.j...@gmail.com on 27 Mar 2012 at 5:24

GoogleCodeExporter commented 9 years ago
Can't wait to see 2.0 :D

Original comment by spacer...@gmail.com on 27 Mar 2012 at 8:47

GoogleCodeExporter commented 9 years ago
For #7, I've uploaded 1.8.7.3 that has updated EI. Guest download page header 
with this interface could be something like this:

<?php 
    set_include_path("backend/".PATH_SEPARATOR.get_include_path());
    require_once("external/MollifyExternalInterface.class.php");
    $USER_ID = 1;

    $mollify = MollifyExternalInterface();
    if ($mollify->isAuthenticated() and $mollify->getUserId() != $USER_ID)
        $mollify->logout();
    $mollify->authenticate($USER_ID);
?>

For #9, thanks, I know I'm excited to redesign everything, as many things has 
been too difficult. The only problem is that it takes so long time...

Original comment by samuli.j...@gmail.com on 28 Mar 2012 at 5:18

GoogleCodeExporter commented 9 years ago
Initial guest mode support added in 1.8.7.4, see 
http://code.google.com/p/mollify/wiki/GuestMode

Original comment by samuli.j...@gmail.com on 31 Mar 2012 at 8:01