mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-29 02:07:36 +00:00
fix(web(js)): improve validation of email addresses
Overwrite the AngularJS validation and transformation of email inputs in order to support umlauts and eszett.
This commit is contained in:
@@ -199,7 +199,8 @@
|
||||
<label>
|
||||
<var:string label:value="Email Address"/>
|
||||
</label>
|
||||
<input type="email" ng-model="email.value"
|
||||
<input type="text" ng-model="email.value"
|
||||
ng-pattern="editor.emailRE"
|
||||
sg-focus-on="email_{{$index}}"/>
|
||||
</md-input-container>
|
||||
</div>
|
||||
|
||||
@@ -164,9 +164,10 @@
|
||||
<md-input-container class="md-block"
|
||||
ng-hide="$AccountDialogController.customFromIsReadonly()">
|
||||
<label><var:string label:value="Reply To Email"/></label>
|
||||
<input type="email"
|
||||
<input type="text"
|
||||
autocomplete="off"
|
||||
ng-model="identity.replyTo"/>
|
||||
ng-model="identity.replyTo"
|
||||
ng-pattern="$AccountDialogController.emailRE"/>
|
||||
</md-input-container>
|
||||
<md-input-container
|
||||
class="md-block md-flex"
|
||||
|
||||
@@ -79,9 +79,10 @@
|
||||
<var:string label:value="When I modify my calendar, send a mail to"/>
|
||||
</md-checkbox>
|
||||
<md-input-container flex-offset="5" md-no-float="md-no-float">
|
||||
<input type="email"
|
||||
<input type="text"
|
||||
label:placeholder="Email Address"
|
||||
ng-model="properties.calendar.notifiedUserOnPersonalModifications"
|
||||
ng-pattern="properties.emailRE"
|
||||
ng-required="properties.calendar.notifications.notifyUserOnPersonalModifications"
|
||||
ng-disabled="!properties.calendar.notifications.notifyUserOnPersonalModifications"/>
|
||||
</md-input-container>
|
||||
|
||||
Reference in New Issue
Block a user