Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David McDonnell 53 posts 251 karma points
    May 04, 2020 @ 10:07
    David McDonnell
    0

    Member Email Encryption Validation Error

    Hi all, I want to encrypt the member email in Umbraco. I have successfully done this, but when I am attempting to save the member at a later time the CMS throws an email validation error on the member view page before hitting the server.

    In the background I ignore all member data that is encrypted so do not double encrypt it, but I cannot get that far as the JS validation is blocking on the email field.

    Is there anyway I can disable this validation? or any other suggestions welcome.

    I have tried removing the "val-email" from the email property editor but it still throws the errorenter image description here

    Cheers David

    UPDATE: Changing the property editor to type text and removing "val-email" gets around the js validation but the PostSave API call in Umbraco is still returning invalid email

    Response Preview of Email field is:

    {label: "Email", description: null, view: "email", config: {}, hideLabel: false,…}
    alias: "_umb_email"
    config: {}
    culture: null
    dataTypeKey: "00000000000000000000000000000000"
    description: null
    editor: null
    hideLabel: false
    id: 0
    isSensitive: false
    label: "Email"
    readonly: false
    validation: {mandatory: true, pattern: null}
    mandatory: true
    pattern: null
    value: "[[ENCRYPTED]]blahblahlblah........."
    view: "email"
    
    ModelState: {_Properties._umb_email.invariant.value: ["Invalid
    email"]}
    _Properties._umb_email.invariant.value: ["Invalid email"] 0: "Invalid email" alias: null
    
Please Sign in or register to post replies

Write your reply to:

Draft