Modify

Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#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 10 years ago by Dalius

Resolution: wontfix
Status: newclosed

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.

comment:2 Changed 10 years ago by The Doctor What

Resolution: wontfix
Status: closedreopened

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 10 years ago by Dalius

That's possible. I will look into this. While there is difference between http:// and https:// but usually it is the same user.

show_email_addressess is good alternative but in your place I registered new ticket for trac that should user user name but not obsfucated mail :)

comment:4 Changed 9 years ago by Dalius

Resolution: fixed
Status: reopenedclosed

comment:5 Changed 9 years ago by The Doctor What

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 9 years ago by Dalius

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 9 years ago by The Doctor What

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 9 years ago by Dalius

Old tickets will have http://. This fix does not and even can not solve this problem. New tickets should be OK.

comment:9 Changed 9 years ago by The Doctor What

Does that include comments, though? Because my comments had the http:// as well.

comment:10 Changed 9 years ago by The Doctor What

And I just tested it and a new ticket has the http:// in front by default. I can try to remove the http:// manually, but I thought this was automatic.

comment:11 Changed 9 years ago by anonymous

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:12 Changed 9 years ago by anonymous

strip_trailing_slash option added.

comment:13 Changed 9 years ago by The Doctor What

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!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Dalius.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.