#2687 closed enhancement (fixed)
Use name instead of url?
Reported by: | The Doctor What | Owned by: | Dalius |
---|---|---|---|
Priority: | normal | Component: | AuthOpenIdPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
Is it possible to use the name in UI instead of the URL? I have no idea if that's a track feature or an openid feature.
Example: Create a new ticket. The user who created the ticket will be http://youridurl.com/ I'd like it to say "My name"
Ciao!
Attachments (0)
Change History (13)
comment:1 Changed 17 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 Changed 17 years ago by
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
Okay, I've done a little research and it looks like there is a feature in trac.ini to not use email address (which I would assume that email addresses correspond to the URL?)
It's: [trac] show_email_addressess
It's set, by default in 0.11, to false. It looks like it does something similar to what I'm asking for, but it (at the moment) only works for email style logins. I'm not entirely sure about this, though, because I don't have a setup that doesn't use your excellent plugin.
In addition, it'd be nice if the user URLs were shown with out the http:// and trailing / to make them look nicer.
Ciao!
comment:3 Changed 17 years ago by
comment:4 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
strip_protocol option added. http://hg.sandbox.lt/authopenid-plugin/rev/ba795cc8834e
comment:5 Changed 17 years ago by
I tried to get it to work and I don't see it's effect. Where should I see this effect?
I have enabled it in the configuration.
Ciao!
comment:6 Changed 17 years ago by
Have you put it in [openid] section and set to true like in http://trac-hacks.org/wiki/AuthOpenIdPlugin
Instead of your OpenID like http://docwhat.myopenid.com you should see docwhat.myopenid.com (I don't know what's your OpenID that's just guess). E.g. in top right corner where is written who has logged in. HTH.
comment:7 Changed 17 years ago by
Yes; I cut and pasted from your example.
In my upper right corner, I see "The Doctor What". I was thinking more for tickets. I created some dummy tickets and comments and they still show http://docwhat.gerf.org/ (my openid) as the ticket submitter and the commentor.
Ciao!
comment:8 Changed 17 years ago by
Old tickets will have http://. This fix does not and even can not solve this problem. New tickets should be OK.
comment:9 Changed 17 years ago by
Does that include comments, though? Because my comments had the http:// as well.
comment:10 Changed 17 years ago by
comment:11 Changed 17 years ago by
Yes, that includes comment. Here is one of my tracs: http://trac.sandbox.lt/skaityta/ticket/55#comment:2
Please note ticket is reported and comments are written by blog.sandbox.lt/. The only problem I had that ticket by default was owned by http://blog.sandbox.lt/. However it is not related with login default owner can be changed by administrator for each component.
In addition I will strip trailing slash as well :)
comment:13 Changed 17 years ago by
Okay, I figured out why it didn't seem to work before. You have to log out and log back in for the various strip* options to work.
Thanks.
Ciao!
That's not issue of this plugin. Please register similar ticket in trac's trac. I can't do anything here. Actually I doubt that this issue will be fixed in original trac because name is saved in session in original trac. That's very strange behavior in my opinion but that's their decision. I have done everything that name of user is taken from sreg and placed in preferences.
The ticket in trac's trac should ask for using name from preferences instead of login name (in this case OpenID url). It might be possible that there is option to act in this way in trac but I'm not sure.
I personally wouldn't recommend this because you will not be able if two users with same name but different OpenID's are different actual.