Opened 8 years ago

Closed 4 years ago

#1291605 closed Feature Requests (fixed)

Present new user with Identities dialog - patch available

Reported by: drel Owned by: nobody
Priority: 8 Milestone: 0.3-stable
Component: User Interface Version: git-master
Severity: normal Keywords:
Cc: zippy1970@…

Description

RoundCube Webmail guessed wrong at my email address,
which meant any emails I sent out before visiting the
identities dialog would have the wrong return address
on them.

When a user first logs in, they should have the
opportunity to configure the default identity.

Attachments (2)

edit_identity_on_first_login.patch (2.2 KB) - added by jpingle 6 years ago.
Patch to edit identity on first login
edit_identity_on_rc_user_creation.diff (1.5 KB) - added by hayalci 5 years ago.
Shows edit identity screen if the user is newly created. Only works when auto create user is true. -- update: a better place for $_SESSION

Download all attachments as: .zip

Change History (16)

comment:1 Changed 8 years ago by jonwolf

Logged In: YES 
user_id=1345465

I submitted a bug report (1292199) for this. I am pretty
sure this is related to users that have to login to their
IMAP server with their full email address. Fortunately,
RoundCube wouldn't let me send email until the address was
fixed, keeping me from sending mail with an incorrect return
address.

comment:2 Changed 8 years ago by drel

Logged In: YES 
user_id=386120

That's correct; I log in to my Courier IMAP server with my
full email address.  A simplistic approach would be to check
for the presence of an @ symbol in the username, and to
assume the username is the full email address in that case.

I still think presenting the identities dialog on the first
login is a good idea.

comment:3 Changed 7 years ago by nobody

Logged In: NO 

Displaying the identities dialog on a user's first logon
would be really great. I tested roundcube on my dad and it
took him quite some emails before he figured out how to get
his name in the "From:" field when he sent emails.

comment:4 Changed 7 years ago by thomasb

  • Milestone 0.1-beta2 deleted
  • Status changed from assigned to new

comment:5 Changed 6 years ago by jpingle

  • Type changed from Feature Requests to Patches
  • Version changed from None to svn-trunk

Anyone care to try this quick patch I fixed up for this? It works for me, though I am sure there is room for improvement.

Changed 6 years ago by jpingle

Patch to edit identity on first login

comment:6 in reply to: ↑ description Changed 5 years ago by keesje76

Wow, this is exactly what I was looking for.

I applied the patch "01/05/07" to Version 0.1-rc2.
Though the line numbers may slightly shift, the patch still applies perfectly.

I should opt for an show_message in edit_identity.inc, to warn the user that he/she needs to edit at least the email field.

Thanks, works like a charm!

Kees

http://www.qspeed.nl

comment:7 Changed 5 years ago by seansan

  • Summary changed from Present new user with Identities dialog to Present new user with Identities dialog - patch available

comment:8 Changed 5 years ago by alec

  • Milestone set to later
  • Resolution changed from None to wontfix
  • Status changed from new to closed

Very old. I think we don't need it anymore.

comment:9 Changed 5 years ago by hayalci

I think that functionality would be very useful, as many users forget setting their identity.

Changed 5 years ago by hayalci

Shows edit identity screen if the user is newly created. Only works when auto create user is true. -- update: a better place for $_SESSION

comment:10 Changed 5 years ago by roe1234

It seems that on a fresh installation of .2 sending a message fails with "Message failed to send" the only thing the user sees, either a better error message or this bug should prevent frustration in the future. I vote for this bug and a better error message

comment:11 Changed 5 years ago by Zippy1970

  • Cc zippy1970@… added
  • Priority changed from 5 to 8
  • Resolution wontfix deleted
  • Status changed from closed to reopened
  • Type changed from Patches to Feature Requests

Seeing that this feature was requested 3 years ago and it still hasn't been implemented makes me believe the developers don't see the severity of the current situation. As it is right now, the chances RC creates a usable identity using $rcmail_configdefault_host? or virtusertable are slim to none for several reasons. But it does expose information that should never be exposed, namely the servername a user logs in to, and the usernames they use to do it. And that is a very severe security risk. Best case, it gives script-kiddies a reason to start brute-force attacks on a user account. Worst case it gives true hackers a very good starting point for compromising a server.

As it is right now, I wouldn't even think of actually using RC because of this security risk.

So I would like to add my request for this feature to the list. Don't let RC create a new identity, but at first login, present the user with the "Create Identity" screen. Also, don't even fill in the fields with "default" values. Too many users will simply accept the default values without thinking creating the same security risk. Force them to enter an identity themselves.

comment:12 Changed 5 years ago by thomasb

  • Severity changed from critical to normal

Why are you talking about security issues and script kiddies? RC does not expose any details other than the credentials people need to configure their regular mail client.

With all the options like 'mail_domain', 'virtuser_file' or 'virtuser_query' it IS possible to get a correct identity created on the first login. Users are lazy and it's the administrators job to configure the services in a way that it creates valid defaults.

This doesn't mean that we don't see the need for such a feature and closing the request wasn't a good choice. However, presenting a blank form to the user is a contradiction to other requests that want to make some identity fields (like sender address) unchangeable or disable the possibility to create more than one identity.

comment:13 Changed 5 years ago by Zippy1970

RC does not expose any details other than the credentials people need to configure their regular mail client.

Exactly. And I don't understand why you think that isn't a bad thing.

First of all, if the user leaves the identity as-is, RC will *always* expose the login name which in many cases is a true *nix account name, even if you use virtuser_file. virtuser_query requires an SQL database that isn't always there (not everybody uses control panels). Requiring the administrator to create and maintain such a database for the sole-purpose of preventing RC from exposing sensitive information is, I'm sorry to say, counter-productive to say the least. RC makes a lot of assumptions (virtusertable being available, login names not being true *nix account names, SQL databases being available).

I't OK to let RC *suggest* a default identity. But is should be optional and it should be confirmed by the user. The way it is now (let RC "guess" the identity and silently set it) is IMHO an absolute no-no.

You make it sound like it's one or the other. It's not. With a single boolean and a few extra conditional statements in your source you can easily make it so administrators can choose how they want it.

comment:14 Changed 4 years ago by thomasb

  • Milestone changed from later to 0.3-stable
  • Resolution set to fixed
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.