Forum
    • Categories
    • Register
    • Login

    isEmailAddress

    Scheduled Pinned Locked Moved Scripting
    7 Posts 3 Posters 484 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • David HealeyD
      David Healey
      last edited by

      I wanted to check if the user had entered a valid email address and rather than trying to use some crazy regex thing in HISE Script I thought I'd tap into JUCE. So I've added a wrapper function Engine.isEmailAddress().

      It's in my development branch and there is a pull request.

      @Christoph-Hart Is the Engine class the best place for this?

      Free HISE Bootcamp Full Course for beginners.
      YouTube Channel - Public HISE tutorials
      My Patreon - HISE tutorials

      1 Reply Last reply Reply Quote 3
      • David HealeyD
        David Healey
        last edited by David Healey

        I see that Christoph merged it earlier today along with a few other pull requests I'd made :)

        A little tip for anyone using this function to validate email addresses before they are used to perform some interaction with a server: You should also perform validation server side, don't trust it to only the client side.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        1 Reply Last reply Reply Quote 2
        • Christoph HartC
          Christoph Hart
          last edited by

          Actually the Server class would be better...

          David HealeyD 1 Reply Last reply Reply Quote 0
          • David HealeyD
            David Healey @Christoph Hart
            last edited by

            @Christoph-Hart Good idea

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

            1 Reply Last reply Reply Quote 0
            • David HealeyD
              David Healey
              last edited by

              Done https://github.com/christophhart/HISE/pull/199

              Free HISE Bootcamp Full Course for beginners.
              YouTube Channel - Public HISE tutorials
              My Patreon - HISE tutorials

              Dan KorneffD 1 Reply Last reply Reply Quote 0
              • Dan KorneffD
                Dan Korneff @David Healey
                last edited by

                @d-healey Could you make a little video on it's implementation and uses? 🤖

                Dan Korneff - Producer / Mixer / Audio Nerd

                David HealeyD 1 Reply Last reply Reply Quote 1
                • David HealeyD
                  David Healey @Dan Korneff
                  last edited by

                  @dustbro I don't think a video is neccessary.

                  Server.isEmailAddress("dustbro@hise.com"); // True
                  Server.isEmailAddress("dustbrohisecom"); // false

                  Free HISE Bootcamp Full Course for beginners.
                  YouTube Channel - Public HISE tutorials
                  My Patreon - HISE tutorials

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post

                  28

                  Online

                  2.1k

                  Users

                  13.0k

                  Topics

                  113.2k

                  Posts