~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to userdb/users.sql

  • Committer: William Grant
  • Date: 2010-02-23 04:30:26 UTC
  • mto: This revision was merged to the branch mainline in revision 1674.
  • Revision ID: grantw@unimelb.edu.au-20100223043026-eisw3iuvnf9f39dm
Email addresses sometimes have underscores. Permit them in login names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
CREATE OR REPLACE FUNCTION valid_login_name(name text) RETURNS boolean AS 
14
14
$$
15
15
    BEGIN
16
 
        RETURN name ~ E'^[a-z0-9][a-z0-9\+\.\-@]*$';
 
16
        RETURN name ~ E'^[a-z0-9][a-z0-9\+\.\-@_]*$';
17
17
    END;
18
18
$$ LANGUAGE 'plpgsql';
19
19