<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Emmanuel Anthony on Medium]]></title>
        <description><![CDATA[Stories by Emmanuel Anthony on Medium]]></description>
        <link>https://medium.com/@orisunmibaree?source=rss-33418ea5393c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yjMwKlDs05GoHLRoCnuYWA.jpeg</url>
            <title>Stories by Emmanuel Anthony on Medium</title>
            <link>https://medium.com/@orisunmibaree?source=rss-33418ea5393c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 15:10:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@orisunmibaree/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Part Three: Log in and Registration Screen in PowerApps]]></title>
            <link>https://medium.com/@orisunmibaree/part-three-log-in-and-registration-screen-in-powerapps-8c52c3a92897?source=rss-33418ea5393c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c52c3a92897</guid>
            <dc:creator><![CDATA[Emmanuel Anthony]]></dc:creator>
            <pubDate>Mon, 14 Aug 2023 23:55:16 GMT</pubDate>
            <atom:updated>2023-08-14T23:55:16.963Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G3pHoM_QZmh6QDQrD_k2mA.png" /></figure><p>In this last of the three-part series on how to create a user-friendly login and registration page in Power Apps, we’ll be building on the template that was created in the previous parts. This last part focuses on the <strong>password recovery</strong> feature that allows users to recover forgotten passwords by providing a 6-digit code sent to their email address. This code expires after 5 minutes.</p><p><strong>Part One:</strong> <br><a href="https://medium.com/@orisunmibaree/part-one-log-in-and-registration-screen-in-powerapps-f3e13e670b8d">https://medium.com/@orisunmibaree/part-one-log-in-and-registration-screen-in-powerapps-f3e13e670b8d</a></p><p><strong>Part Two:</strong> <br><a href="https://medium.com/@orisunmibaree/part-two-log-in-and-registration-screen-in-powerapps-eeae2208f0d">https://medium.com/@orisunmibaree/part-two-log-in-and-registration-screen-in-powerapps-eeae2208f0d</a></p><h3>Steps:</h3><p>1. Add a <strong>vertical container</strong> to the right-hand side container created in <strong>Step 3 </strong>of <strong>Part 1 </strong>and set its properties to the values below.</p><pre>1. Direction: Vertical <br>2. Justify: Start<br>3. Align: Center<br>4. Gap: 8<br>5. Width: Parent.Width<br>6. Height: Parent.Height<br>7. Visible: If(MenuGallery.Selected.Name = &quot;Forgot Password&quot;, true, false)</pre><p>2. Add an <strong>HTML control </strong>to the container created in <strong>step 1 </strong>above using the values provided below as its properties.</p><pre>1. HTML Text: &quot;&lt;div style= &#39;padding:5px;height:45px; width: &quot;&amp;Parent.Width &amp;&quot;px;  text-align:center; font-size:2em; font-family: Trebuchet MS; font-weight:900&#39;&gt;Forgot Password&lt;/div&gt;&quot;<br>2. Width: Parent.Width<br>3. Alight in container: Set by container, Center<br>4. Flexible Height: Off<br>5. Height: 70<br>6. Botton Padding: 0<br>7. Other paddings: 5</pre><p>3. Add a <strong>text label</strong> to the container created in <strong>Step 1</strong>. This label would help us indicate the titles of data to be collected. Use the values provided below to set their properties. If done correctly, the text label would appear in a similar position to the ones in the image above.</p><pre>1. Text: Email Address<br>2. Font: Open sans<br>3. Font Size: 11.5<br>4. Font Weight: Semi Bold<br>5. Width: 550<br>6. Align in container: Set by container, Center<br>7. Flexible height: Off<br>8. Height: 20<br>9. Left Padding: 0</pre><p>4. Add a <strong>text input control</strong> and name it <strong>txtRecoveryEmailAddress. </strong>The same properties used in step 3 should also be used for this, except for <strong>Height</strong> which now equals <strong>50</strong> with a<strong> border radius</strong> of 5 and a <strong>left padding</strong> of <strong>12</strong>.</p><p>5. Add the following code to the border colour property of the <strong>txtRecoveryEmailAddress </strong>text input property.</p><pre>If(<br>    locUsernameError And IsBlank(txtRecoveryEmailAddress.Text),<br>    Color.Red,<br>    If(<br>        locUsernameError,<br>        Color.Red,<br>        RGBA(99, 139, 44, 1)<br>    )<br>)</pre><p>6. Then add a <strong>button control</strong> as seen in the image above and paste the code below into its <strong>OnSelect </strong>property.</p><p><strong>Note: </strong>The <strong>Reset Password</strong> screen in the below code has not been created yet.</p><pre>Set(<br>    gblIDUserToBeRecovered,<br>    LookUp(<br>        LoginDemo,<br>        EmailAddress = txtRecoveryEmailAddress.Text<br>    ).ID<br>);<br>If(<br>    IsBlank(<br>        LookUp(<br>            LoginDemo,<br>            EmailAddress = txtRecoveryEmailAddress.Text<br>        ).EmailAddress<br>    ),<br>    false;<br>    Notify(<br>        &quot;Wrong email address. Try again&quot;,<br>        NotificationType.Error,<br>        3000<br>    ),<br>    Navigate(<br>        &#39;Reset Password&#39;, <br>        Transition.Pop<br>    );<br>    Set(<br>        gblNameUserToBeRecovered,<br>        LookUp(<br>            LoginDemo,<br>            EmailAddress = txtRecoveryEmailAddress.Text<br>        ).Title<br>    );<br>    Set(<br>        gblTimeCodeWasSent,<br>        Now()<br>    );<br>    Set(<br>        gblRecoveryCodeSent,<br>        RandBetween(<br>            111111,<br>            999999<br>        )<br>    );<br>    Gmail.SendEmailV2(<br>        txtRecoveryEmailAddress.Text,<br>        {<br>            Subject: &quot;Password Reset&quot;,<br>            Body: &quot;&lt;div style=&#39;background-color: #f5f5f5; width: 650px; height: 400px; border: 2px solid black; padding-bottom: 30px; font-weight:600; color: #0c5c00&#39;&gt;<br>    &lt;div style=&#39;background-color: #638b2c ;  height: 60px; text-align: center; color: #f5f5f5; font-weight: 900; padding: 15px;font-size:2em; font-family: Trebuchet MS&#39;&gt;<br>      RESET PASSWORD<br>    &lt;/div&gt;<br>    &lt;div style=&#39;font-size:2em; font-family: Trebuchet MS; padding: 20px; background-color:#f5f5f5; color: #057f3f&#39;&gt;&lt;br&gt; Hello &quot; &amp; gblNameUserToBeRecovered &amp; &quot;,&lt;br&gt;&lt;br&gt; Please complete your account registration using the code below. <br>     &lt;div style=&#39;background-color: #f5f5f5;  ; height: 60px; text-align: center; color: #057f3f; font-weight: 900; padding: 15px;font-size:2em; font-family: Trebuchet MS&#39;&gt;<br>      &quot; &amp; gblRecoveryCodeSent &amp; &quot;<br>    &lt;/div&gt;<br>&lt;/div&gt;<br>  &lt;/div&gt;&quot;,<br>            Importance: &quot;Normal&quot;<br>        }<br>    );<br>    Notify(<br>        &quot;A code has been sent to your email&quot;,<br>        NotificationType.Information,<br>        4000<br>    );<br>    <br>)</pre><p>7. Next, add a new blank screen named <strong>Reset Password </strong>and add a <strong>vertical container using the </strong>properties below.</p><pre>1. Direction: Vertical <br>2. Justify: Start<br>3. Align: Center<br>4. Gap: 8<br>5. Width: 600<br>6. Height: 700<br>7. Y: Parent.Height/2 - Self.Height/2<br>8. X: Parent.Width/2 - Self.Width/2</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*huCyLB5G91-a3zypcSkDQA.png" /><figcaption>Confirm Password</figcaption></figure><p>8. Add an <strong>HTML control </strong>to the container created in <strong>step 7 </strong>using the values below for its properties.</p><pre>1. HTML Text: &quot;&lt;div style= &#39;padding:5px;height:45px; width: &quot;&amp;Parent.Width &amp;&quot;px;  text-align:center; font-size:2em; font-family: Trebuchet MS; font-weight:900&#39;&gt;Reset Password&lt;/div&gt;&quot;<br>2. Width: Parent.Width<br>3. Alight in container: Set by container, Center<br>4. Flexible Height: Off<br>5. Height: 75<br>6. Botton Padding: 0<br>7. Other paddings: 5</pre><p>9. Add a <strong>text label</strong> to the container created in <strong>step 7</strong>. This label would help us indicate the titles of data to be collected. Use the values provided below to set their properties. If done correctly, the text label would appear in a similar position to the one in the image above.</p><pre>1. Text: Code<br>2. Font: Open sans<br>3. Font Size: 11.5<br>4. Font Weight: Semi Bold<br>5. Width: 550<br>6. Align in container: Set by container, Center<br>7. Flexible height: Off<br>8. Height: 20<br>9. Left Padding: 0</pre><p>10. Add a <strong>text input control</strong> and name it <strong>txtRecoveryCode. </strong>The same properties used in step 9 should also be used for this, except for <strong>Height</strong> which now equals <strong>50</strong> with a<strong> border radius</strong> of 5 and a <strong>left padding</strong> of <strong>12</strong>.</p><p>11. Copy the <strong>text label </strong>and <strong>text input controls</strong> created in <strong>steps 9 and 10</strong> and paste them into the container. Name the <strong>labels </strong>as seen in the image above and name the <strong>text input controls</strong> as <strong>txtNewPassword </strong>and <strong>txtConfirmNewPassword </strong>respectively using the same properties as in steps 9 and 10.</p><p>12. Add an empty <strong>text label</strong> of <strong>height 80 </strong>to separate the <strong>confirm </strong>button control from the text input control as seen in the image above.</p><p>13. Add a <strong>button</strong> control to the container using the properties in step 9 and adjust where necessary to achieve the desired appearance. Paste the code below into its <strong>OnSelect </strong>property.</p><pre>Set(<br>    RecoveryCodeExpired,<br>    If(<br>        DateDiff(<br>            gblTimeCodeWasSent,<br>            Now(),<br>            TimeUnit.Minutes<br>        ) &gt; 5,<br>        true,<br>        false<br>    )<br>);<br>Set(<br>    RecoveryCodeError,<br>    If(<br>        Value(txtRecoveryCode.Text) &lt;&gt; gblRecoveryCodeSent,<br>        true,<br>        false<br>    )<br>);<br>Set(<br>    gblRecoveryPasswordDontMatch,<br>    If(<br>        txtNewPassword.Text &lt;&gt; txtConfirmNewPassword.Text,<br>        true,<br>        false<br>    )<br>);<br>ClearCollect(<br>    colCheckNumbers,<br>    ForAll(<br>        Split(<br>            txtNewPassword.Text,<br>            &quot;&quot;<br>        ),<br>        If(<br>            IsMatch(<br>                Value,<br>                &quot;[0-9]&quot;<br>            ),<br>            Value,<br>            &quot;&quot;<br>        )<br>    )<br>);<br>ClearCollect(<br>    colCheckCapitalLetters,<br>    ForAll(<br>        Split(<br>            txtNewPassword.Text,<br>            &quot;&quot;<br>        ),<br>        If(<br>            IsMatch(<br>                Value,<br>                &quot;[A-Z]&quot;<br>            ),<br>            Value,<br>            &quot;&quot;<br>        )<br>    )<br>);<br>ClearCollect(<br>    colCheckSmallLetters,<br>    ForAll(<br>        Split(<br>            txtNewPassword.Text,<br>            &quot;&quot;<br>        ),<br>        If(<br>            IsMatch(<br>                Value,<br>                &quot;[a-z]&quot;<br>            ),<br>            Value,<br>            &quot;&quot;<br>        )<br>    )<br>);<br>ClearCollect(<br>    colCheckSymbol,<br>    ForAll(<br>        Split(<br>            txtNewPassword.Text,<br>            &quot;&quot;<br>        ),<br>        If(<br>            IsMatch(<br>                Value,<br>                &quot;[@,#,$,%,&amp;,?,&gt;,&lt;]&quot;<br>            ),<br>            Value,<br>            &quot;&quot;<br>        )<br>    )<br>);<br>UpdateContext(<br>    {<br>        locNewPasswordError: (CountRows(<br>            Filter(<br>                colCheckNumbers,<br>                Value<br>            )<br>        ) = 0 || CountRows(<br>            Filter(<br>                colCheckCapitalLetters,<br>                Value<br>            )<br>        ) = 0 || CountRows(<br>            Filter(<br>                colCheckSmallLetters,<br>                Value<br>            )<br>        ) = 0 || CountRows(<br>            Filter(<br>                colCheckSymbol,<br>                Value<br>            )<br>        ) = 0)<br>    }<br>);<br>If(<br>    locNewPasswordError,<br>    Notify(<br>        &quot;Password must be a combination of uppercase letters, lowercase letters, numbers and any of these symbols !@#$%^&amp;*&gt;?&quot;,<br>        NotificationType.Error,<br>        3000<br>    ),<br>    If(<br>        RecoveryCodeExpired,<br>        false;<br>        Notify(<br>            &quot;Code has expired. Click resend for another code&quot;,<br>            NotificationType.Error,<br>            4000<br>        ),<br>        If(<br>            RecoveryCodeError,<br>            false;<br>            Notify(<br>                &quot;Incorrect code. Try again&quot;,<br>                NotificationType.Error,<br>                4000<br>            ),<br>            If(<br>                gblRecoveryPasswordDontMatch,<br>                false;<br>                Notify(<br>                    &quot;Passwords do not match. Please try again&quot;,<br>                    NotificationType.Error,<br>                    4000<br>                ),<br>                If(<br>                    locNewPasswordError,<br>                    false;<br>                    Notify(<br>                        &quot;Password must be a combination of uppercase letters, lowercase letters, numbers and any of these symbols !@#$%^&amp;*&gt;?&quot;,<br>                        NotificationType.Error,<br>                        4000<br>                    )<br>                )<br>            )<br>        )<br>    )<br>);<br>If(<br>    RecoveryCodeExpired = false And RecoveryCodeError = false And locNewPasswordError = false And gblRecoveryPasswordDontMatch = false,<br>    Patch(<br>        LoginDemo,<br>        {ID: gblIDUserToBeRecovered},<br>        {Password: txtNewPassword.Text}<br>    );<br>    Notify(<br>        &quot;Password change successful. Please login with new password&quot;,<br>        NotificationType.Success,<br>        4000<br>    );<br>    Navigate(<br>        &#39;Home Screen&#39;,<br>        ScreenTransition.Fade<br>    );<br>    Reset(txtRecoveryCode);<br>    Reset(txtNewPassword);<br>    Reset(txtConfirmNewPassword);<br>    Reset(txtRecoveryEmailAddress);<br>    <br>)</pre><p>14. Add another <strong>button control </strong>and name it R<strong>esend code</strong> and paste the code below into its <strong>OnSelect</strong> property.</p><pre>Set(<br>    gblIDUserToBeRecovered,<br>    LookUp(<br>        LoginDemo,<br>        EmailAddress = txtRecoveryEmailAddress.Text<br>    ).ID<br>);<br><br><br>Set(<br>    gblNameUserToBeRecovered,<br>    LookUp(<br>        LoginDemo,<br>        EmailAddress = txtRecoveryEmailAddress.Text<br>    ).Title<br>);<br>Set(<br>    gblTimeCodeWasSent,<br>    Now()<br>);<br>Set(<br>    gblRecoveryCodeSent,<br>    RandBetween(<br>        111111,<br>        999999<br>    )<br>);<br>Gmail.SendEmailV2(<br>        txtRecoveryEmailAddress.Text,<br>        {<br>            Subject: &quot;Complete Registration&quot;,<br>            Body: &quot;&lt;div style=&#39;background-color: #f5f5f5; width: 650px; height: 400px; border: 2px solid black; padding-bottom: 30px; font-weight:600; color: #0c5c00&#39;&gt;<br>    &lt;div style=&#39;background-color: #638b2c ;  height: 60px; text-align: center; color: #f5f5f5; font-weight: 900; padding: 15px;font-size:2em; font-family: Trebuchet MS&#39;&gt;<br>      RESET PASSWORD<br>    &lt;/div&gt;<br>    &lt;div style=&#39;font-size:2em; font-family: Trebuchet MS; padding: 20px; background-color:#f5f5f5; color: #057f3f&#39;&gt;&lt;br&gt; Hello &quot; &amp; gblNameUserToBeRecovered &amp; &quot;,&lt;br&gt;&lt;br&gt; Please complete your account registration using the code below. <br>     &lt;div style=&#39;background-color: #f5f5f5;  ; height: 60px; text-align: center; color: #057f3f; font-weight: 900; padding: 15px;font-size:2em; font-family: Trebuchet MS&#39;&gt;<br>      &quot; &amp; gblRecoveryCodeSent &amp; &quot;<br>    &lt;/div&gt;<br>&lt;/div&gt;<br>  &lt;/div&gt;&quot;,<br>            Importance: &quot;Normal&quot;<br>        }<br>    );<br>Reset(txtRecoveryEmailAddress)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c52c3a92897" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part Two: Log in and Registration Screen in PowerApps]]></title>
            <link>https://medium.com/@orisunmibaree/part-two-log-in-and-registration-screen-in-powerapps-eeae2208f0d?source=rss-33418ea5393c------2</link>
            <guid isPermaLink="false">https://medium.com/p/eeae2208f0d</guid>
            <dc:creator><![CDATA[Emmanuel Anthony]]></dc:creator>
            <pubDate>Mon, 14 Aug 2023 22:20:48 GMT</pubDate>
            <atom:updated>2023-08-14T23:56:14.231Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f4RIbTBQSOcnXd3xWJSbJA.png" /></figure><p>In this second of the three-part series on how to create a user-friendly login and registration page in Power Apps, we’ll be building on the template that was created in the first part <a href="https://medium.com/@orisunmibaree/part-one-log-in-and-registration-screen-in-powerapps-f3e13e670b8d">https://medium.com/@orisunmibaree/part-one-log-in-and-registration-screen-in-powerapps-f3e13e670b8d</a>. <br>This part focuses on the login feature where users are required to provide a valid <strong>username </strong>and <strong>password </strong>before they can access the application. Passwords are validated by ensuring that the number of characters, uppercase letters, lowercase letters and symbols provided by users during login all match what was provided during registration.</p><h4>Steps:</h4><p>1. Add a <strong>vertical container</strong> to the right-hand side container created in <strong>Step 3 </strong>of <strong>Part 1 </strong>and set its properties to the values below.</p><pre>1. Direction: Vertical <br>2. Justify: Start<br>3. Align: Center<br>4. Gap: 8<br>5. Width: Parent.Width<br>6. Height: Parent.Height<br>7. Visible: If(MenuGallery.Selected.Name = &quot;Log in&quot;, true, false)</pre><p>2. Add an <strong>HTML control </strong>to the container created in <strong>step 1 </strong>above using the values provided below as its properties.</p><pre>1. HTML Text: &quot;&lt;div style= &#39;padding:5px;height:45px; width: &quot;&amp;Parent.Width &amp;&quot;px;  text-align:center; font-size:2em; font-family: Trebuchet MS; font-weight:900&#39;&gt;Log in&lt;/div&gt;&quot;<br>2. Width: Parent.Width<br>3. Alight in container: Set by container, Center<br>4. Flexible Height: Off<br>5. Height: 70<br>6. Botton Padding: 0<br>7. Other paddings: 5</pre><p>3. Add a <strong>text label</strong> to the container created in <strong>Step 1</strong>. This label would help us indicate the titles of data to be collected. Use the values provided below to set their properties. If done correctly, the text label would appear in a similar position to the ones in the image above.</p><pre>1. Text: Username<br>2. Font: Open sans<br>3. Font Size: 11.5<br>4. Font Weight: Semi Bold<br>5. Width: 550<br>6. Align in container: Set by container, Center<br>7. Flexible height: Off<br>8. Height: 20<br>9. Left Padding: 0</pre><p>4. Add a <strong>text input control</strong> and name it <strong>txtLoginUsername. </strong>The same properties used in step 3 should also be used for this, except for <strong>Height</strong> which now equals <strong>50</strong> with a<strong> border radius</strong> of 5 and a <strong>left padding</strong> of <strong>12</strong>.</p><p>5. Repeat S<strong>tep 3 </strong>to create a text label to display the title <strong>Password </strong>as seen in the image above. Also, repeat <strong>Step 4 </strong>to add a <strong>text input control </strong>named <strong>txtLoginPassword.</strong></p><p>6. Add the code below to the <strong>border colour</strong> of the <strong>txtLoginUsername </strong>created in <strong>Step 4</strong> above<strong>.</strong></p><pre>If(<br>    locUsernameError And IsBlank(txtLoginUsername.Text),<br>    Color.Red,<br>    If(<br>        locUsernameError,<br>        Color.Red,<br>        RGBA(99, 139, 44, 1)<br>    )<br>)</pre><p>7. Add the code below to the <strong>border colour</strong> of the <strong>txtLoginPassword </strong>created in <strong>Step 5 </strong>above<strong>.</strong></p><pre>If(<br>    locPasswordError And IsBlank(txtLoginUsername.Text),<br>    Color.Red,<br>    If(<br>        locPasswordError || locNumberofCaps || locPasswordCount,<br>        Color.Red,<br>        RGBA(99, 139, 44, 1)<br>    )<br>)</pre><p>8. To include the error icon/emoji as displayed below, add an <strong>HTML control</strong> under the previous text controls and input the code provided.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dc8pUif3SGsNnqrT6bYhuw.png" /><figcaption>Display of the error icon</figcaption></figure><pre>1. HTML Text:<br>    If(<br>    gblShowLoginErrorIcon, &quot;&lt;div style= &#39;padding:5px;height:60px; <br>    width: &quot; &amp; Parent.Width &amp; &quot;px;  text-align:center; font-size:4em; <br>    font-family: Trebuchet MS; font-weight:300&#39;&gt;☹️&lt;/div&gt;&quot;,<br>    &quot;&quot;<br>    )<br>2. Visible:<br>    If(<br>    gblShowLoginErrorIcon,<br>    true,<br>    false<br>    )<br>3. Width: Parent.Width<br>4. Font size: 11<br>5. Height: 95</pre><p>9. Then add a <strong>button control</strong> as seen in the image above and paste the code below into its <strong>OnSelect </strong>property.</p><pre>Set(<br>    gblCheckPasswordInSharepoint,<br>    LookUp(<br>        LoginDemo,<br>        UserName = txtLoginUsername.Text<br>    ).Password<br>);<br>Set(<br>    gblCapsInSharepointPasswords,<br>    ClearCollect(<br>        colCaps,<br>        ForAll(<br>            Split(<br>                gblCheckPasswordInSharepoint,<br>                &quot;&quot;<br>            ),<br>            If(<br>                IsMatch(<br>                    Value,<br>                    &quot;[A-Z]&quot;<br>                ),<br>                Value,<br>                &quot;&quot;<br>            )<br>        )<br>    );<br>    Concat(<br>        colCaps,<br>        Value,<br>        &quot;&quot;<br>    )<br>);<br>Set(<br>    gblCapsInUserPassword,<br>    ClearCollect(<br>        colCaps,<br>        ForAll(<br>            Split(<br>                txtLoginPassword.Text,<br>                &quot;&quot;<br>            ),<br>            If(<br>                IsMatch(<br>                    Value,<br>                    &quot;[A-Z]&quot;<br>                ),<br>                Value,<br>                &quot;&quot;<br>            )<br>        )<br>    );<br>    Concat(<br>        colCaps,<br>        Value,<br>        &quot;&quot;<br>    )<br>);<br>UpdateContext(<br>    {<br>        locUsernameError: IsBlank(<br>            LookUp(<br>                LoginDemo,<br>                UserName = txtLoginUsername.Text<br>            ).UserName<br>        )<br>    }<br>);<br>UpdateContext({locNumberofCaps: gblCapsInUserPassword &lt;&gt; gblCapsInSharepointPasswords}); <br>UpdateContext({locPasswordCount: Len(txtLoginPassword) &lt;&gt; Len(gblCheckPasswordInSharepoint)});<br>UpdateContext({locBlankPassword: IsBlank(gblCheckPasswordInSharepoint)});<br>UpdateContext({locPasswordError: locBlankPassword || (locPasswordCount And locNumberofCaps)});<br><br>If(<br>    locUsernameError,<br>    Notify(<br>        &quot;Wrong username. Please try again&quot;,<br>        NotificationType.Error,<br>        3000<br>    );<br>    Set(<br>        gblShowLoginErrorIcon,<br>        true<br>    ),<br>    If(<br>        locPasswordError || locNumberofCaps || locPasswordCount,<br>        Notify(<br>            &quot;Wrong password. Please try again&quot;,<br>            NotificationType.Error,<br>            3000<br>        );<br>        Set(<br>            gblShowLoginErrorIcon,<br>            true<br>        )<br>    )<br>);<br>If(<br>    locPasswordError || locUsernameError || locNumberofCaps || locPasswordCount,<br>    false,<br>    If(<br>        locPasswordError = false And locUsernameError = false And locNumberofCaps = false And locPasswordCount = false,<br>        Navigate(<br>            Dashboard,<br>            ScreenTransition.Fade<br>        );<br>        Notify(<br>            &quot;Login Successful&quot;,<br>            NotificationType.Success,<br>            2000<br>        );<br>        Set(<br>            CurrentUser,<br>            LookUp(<br>                LoginDemo,<br>                UserName = txtLoginUsername.Text<br>            )<br>        );<br>        Set(<br>            ThisSession,<br>            Patch(<br>                LoginRecords,<br>                Defaults(LoginRecords),<br>                {<br>                    User: CurrentUser.UserName,<br>                    LoginTime: Now()<br>                }<br>            )<br>        );<br>        Reset(txtLoginPassword);<br>        Reset(txtLoginUsername);<br>    )<br>);</pre><h3>Next: Password Recovery</h3><p><a href="https://medium.com/@orisunmibaree/part-three-log-in-and-registration-screen-in-powerapps-8c52c3a92897">https://medium.com/@orisunmibaree/part-three-log-in-and-registration-screen-in-powerapps-8c52c3a92897</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eeae2208f0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part One: Log in and Registration Screen in PowerApps]]></title>
            <link>https://medium.com/@orisunmibaree/part-one-log-in-and-registration-screen-in-powerapps-f3e13e670b8d?source=rss-33418ea5393c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3e13e670b8d</guid>
            <category><![CDATA[power-platform-developers]]></category>
            <category><![CDATA[office-365]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[powerapps]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Emmanuel Anthony]]></dc:creator>
            <pubDate>Sun, 06 Aug 2023 19:28:50 GMT</pubDate>
            <atom:updated>2023-08-14T22:22:13.688Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ri_IQr_oyxf2s7wx8enzGg.png" /></figure><p>This is the first of a three-part series on how to create a user-friendly login and registration page in Power Apps. In this first part, we’ll cover the user registration process, which includes the following features:</p><p><strong>Password validation:</strong> <br>Ensuring that passwords include uppercase, lowercase, numbers, and symbols.</p><p><strong>Unique username and email address:</strong> <br>Making sure that each user has a distinct username and email.</p><p><strong>Gmail account requirement: </strong><br>Allowing only Gmail accounts for registration.</p><p><strong>Email confirmation code: </strong><br>Sending a code for email confirmation that expires after 5 minutes.</p><p><strong>Password recovery:</strong> <br>Enabling users to recover their accounts if they forget their passwords.</p><h3><strong>When should a power app have a login screen?</strong></h3><p>A Powerapp login screen allows users to enter unique identifier information, usually a username and password before they can access an application. If that username and password validations are correct, then the app will open otherwise it will give a notification error. However, knowing that an Office 365 authentication is required to access the Power Apps portal, it&#39;s therefore important to understand why an additional login or registration screen might be useful.</p><p>Rejoice Stores is a shopping mall that plans to employ 15 sales personnel who would run different shifts to attend to customers. The management of Rejoice Stores has also decided to build their <strong>Purchase Order Application</strong> using power apps due to its several benefits. Unfortunately, the need to track activities on the purchase order app would mean that all <strong>15 sales representatives would be provided with individual Office365 user accounts</strong>, excluding user accounts for other intended members of staff but this would lead to an increase in overhead cost. However, in a bid to reduce costs, there is an idea to provide all <strong>15 sales representatives with a single Office 365 user account</strong> that they can use to access the purchase order and other necessary applications.</p><p>In meeting the requirement of Rejoice Stores, there is a need to ensure that the purchase order and every one of their applications must still be able to track every user and essential activity.</p><p>New users are required to register or sign up on the app by providing the required information. If this information passes the validation tests, the app navigates to another screen where users are required to confirm their registration using a code sent to their email address. This is to ensure that every user has a valid email for authentication and other activities.</p><h3>Data Connections</h3><ol><li>Create a SharePoint List named <strong>LoginDemo</strong> that stores users&#39; records. Below are the columns to be created. All columns should be a<strong> single line of text</strong>.</li></ol><pre>Title //I used sharepoint&#39;s title column for the Users FullName<br>UserName<br>Password<br>EmailAddress</pre><p>2. Add the <strong>Gmail connector</strong> to power apps.</p><h3>Steps:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vo-coBCLfaUscPcnzycK5g.png" /></figure><ol><li>Add two blank screens to the canvas and name the first screen the <strong>Home Screen.</strong> Paste the below codes in the <strong>onVisible and Fill </strong>properties of the <strong>Home Screen</strong>.</li></ol><pre>1. OnVisible<br>   Set(gblShowErrorImage, false );<br>   ClearCollect(<br>      colMenuTable,<br>      {<br>          Name: &quot;Log in&quot;,<br>          Value: 1<br>      },<br>      {<br>          Name: &quot;Register&quot;,<br>          Value: 2<br>      },<br>      {<br>          Name: &quot;Forgot Password&quot;,<br>          Value: 3<br>      }<br>   );<br><br>2. Fill: ColorFade( RGBA(22, 255, 89, 1), 90%)</pre><p>2. Add a <strong>horizontal container</strong> to the home screen and set its properties to the values below. This container should cover the entire width and height of the screen.</p><pre>1. Justify: Center<br>2. Allign: Center<br>3. Width: Parent.Width<br>4. Height: Pparent.Height<br>5. Gap: 15<br>6. Fill: Transparent<br></pre><p>3. Add <strong>two non-responsive containers</strong> into the vertical container created in Step 1 and set their properties to the values provided below.</p><pre>1. Height: 720<br>2. Align in container: Set by container, Center<br>3. Flexible width: Off<br>4. Width: 650<br>5. All paddings: 0<br>6. Border radius: 8<br>7. Drop shadow: Bold</pre><p>4. Add an HTML Control to the left-sided container and insert the code below into its <strong>text property</strong>. Set its <strong>Height </strong>and <strong>Width </strong>to desired values and add a desired image or background colour for the container background as shown in the image above.</p><pre>&quot;&lt;div style= &#39;padding:15px;height:100px; width: &quot;&amp;Parent.Width &amp;&quot;px;  <br>text-align:center; font-size:4.5em; font-family: Trebuchet MS; <br>font-weight:900&#39;&gt;Application Registration Demo&lt;/div&gt;&quot;</pre><p>5. Add a <strong>blank vertical gallery</strong> into the left-sided container as seen above and name it <strong>MenuGallery</strong>. Also, add a <strong>button</strong> control to the gallery template and adjust their <strong>X and Y</strong> properties to achieve a similar appearance to what is displayed above, then use the values provided below to set the other properties.</p><pre>1. Gallery Items: colMenuTable//The Menu collection in the OnVisibile of the screen. <br>                       //Also navigate away and back to the home screen to initialize the Menu collection<br><br>2. Gallery On-Select:<br>    Switch(<br>        ThisItem.Name,<br>        &quot;Log in&quot;,<br>        UpdateContext({locPasswordError: false});<br>        Set(<br>            gblBlankEntry,<br>            false<br>        ),<br>        &quot;Register&quot;,<br>        UpdateContext({locUsernameError: false});<br>        UpdateContext({locPasswordError: false});<br>        <br>    )<br><br>3. Button Text: ThisItem.Name<br><br>4. Button Fill: <br>  ColorFade(<br>      Switch(<br>          ThisItem.Name,<br>          &quot;Log in&quot;,<br>          RGBA(<br>              24,<br>              156,<br>              21,<br>              1<br>          ),<br>          &quot;Register&quot;,<br>          RGBA(<br>              26,<br>              26,<br>              26,<br>              0.6<br>          ),<br>          &quot;Forgot Password&quot;,<br>          Color.OrangeRed<br>      ),<br>      -10%<br>  )<br><br>5. Button Border Color: <br>    Switch(<br>        ThisItem.Name,<br>        &quot;Log in&quot;,<br>        Self.Fill,<br>        &quot;Register&quot;,<br>        Color.White,<br>        &quot;Forgot Password&quot;,<br>        Self.Fill<br>    ) //Or as desired<br>6. Button Onselect: Select(Parent)</pre><p>6. Add a <strong>Timer control</strong> below the gallery. This would help us display the error icon. Note that the <strong>visible property</strong> of this control would later be turned off. Use the values provided below to set its property.</p><pre>1. Duration: 3000<br>2. Start: gblShowErrorImage<br>3. OnTimerEnd: Set(gblShowErrorImage, false)</pre><p>7. Add a <strong>vertical container</strong> to the right-hand side container that was created above in <strong>Step 3</strong> and set its properties to the values below.</p><pre>1. Direction: Vertical <br>2. Justify: Start<br>3. Align: Center<br>4. Gap: 8<br>5. Width: Parent.Width<br>6. Height: Parent.Height<br>7. Visible: If(MenuGallery.Selected.Name = &quot;Register&quot;, true, false)</pre><p>8. Add an <strong>HTML control </strong>to the container created in <strong>step 7 </strong>using the values provided below for its properties.</p><pre>1. HTML Text: &quot;&lt;div style= &#39;padding:5px;height:45px; width: &quot;&amp;Parent.Width &amp;&quot;px;  text-align:center; font-size:2em; font-family: Trebuchet MS; font-weight:900&#39;&gt;Register&lt;/div&gt;&quot;<br>2. Width: Parent.Width<br>3. Alight in container: Set by container, Center<br>4. Flexible Height: Off<br>5. Height: 70<br>6. Botton Padding: 0<br>7. Other paddings: 5</pre><p>9. Add a <strong>text label</strong> to the container created in <strong>step 7</strong>. This label would help us indicate the titles of data to be collected. Use the values provided below to set their properties. If done correctly, the text label would appear in a similar position to the one in the image above.</p><pre>1. Text: Full Name<br>2. Font: Open sans<br>3. Font Size: 11.5<br>4. Font Weight: Semi Bold<br>5. Width: 550<br>6. Align in container: Set by container, Center<br>7. Flexible height: Off<br>8. Height: 20<br>9. Left Padding: 0</pre><p>10. Add a <strong>text input control</strong> and name it <strong>txtFullName. </strong>The same properties used in step 9 should also be used for this, except for <strong>Height</strong> which now equals <strong>50</strong> with a<strong> border radius</strong> of 5 and a <strong>left padding</strong> of <strong>12</strong>.</p><p>11. <strong>Copy the text label and text input controls</strong> created in steps 9 and 10, and paste them into the container. Name them accordingly using what is displayed below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*-1PhRUfYPY6QKOZag7TyFw.png" /><figcaption>Display of text controls with their labels</figcaption></figure><p>Below, you would find codes for each text control that allows them to indicate when there is an error. The codes should be placed in the border colour property of their respective text control. Also, since the variables that work with these codes are yet to be declared, they could be commented out until the variables are set.</p><p>12. Code for border colour of <strong>txtFullName</strong></p><pre>If(<br>    gblBlankEntry And locPasswordError = false And IsBlank(txtFullName.Text),<br>    Color.Red,<br>    RGBA(<br>        99,<br>        139,<br>        44,<br>        1<br>    )<br>)</pre><p>13. Code for border colour of <strong>txtUsername</strong></p><pre>If(<br>    gblBlankEntry And locPasswordError = false And IsBlank(txtUsername.Text),<br>    Color.Red,<br>    If(<br>        locUsernameUsed,<br>        Color.Red,<br>        RGBA(<br>            99,<br>            139,<br>            44,<br>            1<br>        )<br>    )<br>)</pre><p>14. Code for border colour of <strong>txtEmailAddress</strong></p><pre>If(<br>    gblBlankEntry And locPasswordError = false || gblInvalidEmail || locEmailUsed,<br>    Color.Red,<br>    RGBA(<br>        99,<br>        139,<br>        44,<br>        1<br>    )<br>)</pre><p>15. Code for border colour of <strong>txtPassword</strong></p><pre>If(<br>    locPasswordError,<br>    Color.Red,<br>    If(<br>        locPasswordError = false And gblPasswordsDontMatch,<br>        Color.Red,<br>        RGBA(<br>            99,<br>            139,<br>            44,<br>            1<br>        )<br>    )<br>)</pre><p>16. Code for border colour of <strong>txtConfirmPassword</strong></p><pre>If(<br>    locPasswordError,<br>    Color.Red,<br>    If(<br>        locPasswordError = false And gblPasswordsDontMatch,<br>        Color.Red,<br>        RGBA(<br>            99,<br>            139,<br>            44,<br>            1<br>        )<br>    )<br>)</pre><p><em>Again, these codes can be commented out to avoid the distraction created by the errors.</em></p><p>17. To include the error icon/emoji as displayed below, add an <strong>HTML control</strong> under the previous text controls and input the code provided.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*82qIGGSs1UYJrJ1xpMq0cg.png" /><figcaption>Display of the error icon</figcaption></figure><pre>1. HTML Text:<br>    If(<br>        gblShowErrorImage,<br>        &quot;&lt;div style= &#39;padding:5px;height:60px; width: &quot; &amp; Parent.Width &amp; &quot;px;  text-align:center; font-size:4em; font-family: Trebuchet MS; font-weight:300&#39;&gt;☹️&lt;/div&gt;&quot;,<br>        &quot;&quot;<br>    )<br>2. Visible:<br>    If(<br>    gblShowErrorImage,<br>    true,<br>    false<br>    )<br>3. Width: Parent.Width<br>4. Font size: 11<br>5. Height: 95</pre><p>18. Then add a <strong>button control</strong> with the properties provided below.</p><pre>1. DisplayMode: <br>    If(<br>        Len(txtPassword.Text) &lt; 14,<br>        DisplayMode.Disabled,<br>            If(<br>                IsBlank(txtFullName.Text) || <br>                IsBlank(txtUsername.Text) || <br>                IsBlank(txtPassword.Text) || <br>                IsBlank(txtEmailAddress.Text) || <br>                IsBlank(txtConfirmPassword.Text),<br>                DisplayMode.Disabled,<br>                DisplayMode.Edit<br>            )<br>        )<br>2. Onselect Property:<br>        Set(<br>        gblTimeCodeWasSent,<br>        Now()<br>    );<br>    Set(<br>        gblNewUserEmail,<br>        txtEmailAddress.Text<br>    );<br>    Set(<br>        gblNewUserFullName,<br>        txtFullName.Text<br>    );<br>    Set(<br>        gblRegistrationCodeSent,<br>        RandBetween(<br>            111111,<br>            999999<br>        )<br>    );<br>    UpdateContext(<br>        {<br>            locUsernameUsed: !IsBlank(<br>                LookUp(<br>                    LoginDemo,<br>                    UserName = txtUsername.Text<br>                ).UserName<br>            )<br>        }<br>    );<br>    UpdateContext(<br>        {<br>            locEmailUsed: !IsBlank(<br>                LookUp(<br>                    LoginDemo,<br>                    EmailAddress = txtEmailAddress.Text<br>                ).EmailAddress<br>            )<br>        }<br>    );<br>    Set(<br>        gblBlankEntry,<br>        If(<br>            IsBlank(txtFullName.Text) || <br>            IsBlank(txtUsername.Text) || <br>            IsBlank(txtPassword.Text) || <br>            IsBlank(txtConfirmPassword.Text) || <br>            IsBlank(txtEmailAddress.Text),<br>            true,<br>            false<br>        )<br>    );<br>    Set(<br>        gblPasswordsDontMatch,<br>        If(<br>            txtPassword.Text &lt;&gt; txtConfirmPassword.Text,<br>            true,<br>            false<br>        )<br>    );<br>    Set (<br>        gblInvalidEmail,<br>        If(<br>            IfError(<br>                Gmail.SendEmailV2(<br>                    gblNewUserEmail, //checks if the email address is active <br>                    {<br>                        Subject: &quot;&quot;,<br>                        Body: &quot;&quot;<br>                    }<br>                ),<br>                true,<br>                false<br>            ) || Right(<br>                txtEmailAddress.Text,<br>                10<br>            ) &lt;&gt; &quot;@gmail.com&quot;, //confirms if its a gmail account<br>            true,<br>            false<br>        )<br>    );<br>    ClearCollect(<br>        colCheckNumbers,<br>        ForAll(<br>            Split(<br>                txtPassword.Text, //splits the password and checks each character for numbers and then returns the available numbers as a collection<br>                &quot;&quot;<br>            ),<br>            If(<br>                IsMatch(<br>                    Value,<br>                    &quot;[0-9]&quot;<br>                ),<br>                Value,<br>                &quot;&quot;<br>            )<br>        )<br>    );<br>    ClearCollect(<br>        colCheckCapitalLetters,<br>        ForAll(<br>            Split(<br>                txtPassword.Text, //splits the password and checks each character for capital letters and then returns the available capital letters as a collection <br>                &quot;&quot;<br>            ), <br>            If(<br>                IsMatch(<br>                    Value,<br>                    &quot;[A-Z]&quot; <br>                ),<br>                Value,<br>                &quot;&quot;<br>            )<br>        )<br>    );<br>    ClearCollect(<br>        colCheckSmallLetters,<br>        ForAll(<br>            Split(<br>                txtPassword.Text,<br>                &quot;&quot;<br>            ),<br>            If(<br>                IsMatch(<br>                    Value,<br>                    &quot;[a-z]&quot; //splits the password and checks each character for small letters and then returns the available small letters as a collection<br>                ),<br>                Value,<br>                &quot;&quot;<br>            )<br>        )<br>    ); <br>       <br>    ClearCollect(<br>        colCheckSymbol,<br>        ForAll(<br>            Split(<br>                txtPassword.Text,<br>                &quot;&quot;<br>            ),<br>            If(<br>                IsMatch(<br>                    Value,<br>                    &quot;[@,#,$,%,&amp;,?,&gt;,&lt;]&quot; //splits the password and checks each character for any of these symbols and then returns the available symbols as a collection<br>                ),<br>                Value,<br>                &quot;&quot;<br>            )<br>        )<br>    );<br>    UpdateContext(<br>        {<br>            locPasswordError: (CountRows(<br>                Filter(<br>                    colCheckNumbers,<br>                    Value<br>                )<br>            ) = 0 || CountRows(<br>                Filter(<br>                    colCheckCapitalLetters,<br>                    Value<br>                )<br>            ) = 0 || CountRows(<br>                Filter(<br>                    colCheckSmallLetters,<br>                    Value<br>                )<br>            ) = 0 || CountRows(<br>                Filter(<br>                    colCheckSymbol,<br>                    Value<br>                )<br>            ) = 0)<br>        }<br>    );<br>    If(<br>        locPasswordError,<br>        Notify(<br>            &quot;Password must be a combination of uppercase letters, lowercase letters, numbers and any of these symbols !@#$%^&amp;*&gt;?&quot;,<br>            NotificationType.Error,<br>            3000<br>        );<br>        Set(<br>            gblShowErrorImage,<br>            true<br>        ),<br>        If(<br>            gblPasswordsDontMatch,<br>            Notify(<br>                &quot;Passwords do not match&quot;,<br>                NotificationType.Error,<br>                3000<br>            );<br>            Set(<br>                gblShowErrorImage,<br>                true<br>            ),<br>            If(<br>                gblInvalidEmail,<br>                Notify(<br>                    &quot;Invalid email address. Please use a valid gmail account&quot;,//locEmailUsed<br>                    NotificationType.Error,<br>                    3000<br>                );<br>                Set(<br>                    gblShowErrorImage,<br>                    true<br>                ),<br>                If(<br>                    locEmailUsed,<br>                    Notify(<br>                        &quot;Email address is not available. Please use another email address&quot;,//locEmailUsed<br>                        NotificationType.Error,<br>                        3000<br>                    );<br>                    Set(<br>                        gblShowErrorImage,<br>                        true<br>                    ),<br>                    If(<br>                        gblBlankEntry,<br>                        Notify(<br>                            &quot;All fields are required&quot;,<br>                            NotificationType.Error,<br>                            3000<br>                        );<br>                        Set(<br>                            gblShowErrorImage,<br>                            true<br>                        ),<br>                        If(<br>                            locUsernameUsed,<br>                            Notify(<br>                                &quot;Username not available. Try another one&quot;,<br>                                NotificationType.Error,<br>                                3000<br>                            );<br>                            Set(<br>                                gblShowErrorImage,<br>                                true<br>                            )<br><br>                        )<br>                    )<br>                )<br>            )<br>        )<br>    );<br>    If(<br>        locPasswordError || locUsernameUsed || gblInvalidEmail || locEmailUsed || gblPasswordsDontMatch,<br>        false,<br>        If(<br>            gblBlankEntry,<br>            false,<br>            ClearCollect(<br>                colNewUser,<br>                {<br>                    Status: &quot;colNewUserRecord&quot;,<br>                    Name: txtFullName.Text,<br>                    UserName: txtUsername.Text,<br>                    Email: txtEmailAddress.Text,<br>                    Password: txtConfirmPassword.Text<br>                }<br>            );<br>        )<br>    );<br>    If(<br>        locPasswordError = false And gblBlankEntry = false And locUsernameUsed = false And gblPasswordsDontMatch = false And gblInvalidEmail = false And locEmailUsed = false,<br>        Gmail.SendEmailV2(<br>            gblNewUserEmail,<br>            {<br>                Subject: &quot;Complete Registration&quot;,<br>                Body: &quot;&lt;div style=&#39;background-color: #f5f5f5; width: 650px; height: 400px; border: 2px solid black; padding-bottom: 30px; font-weight:600; color: #0c5c00&#39;&gt;<br>        &lt;div style=&#39;background-color: #638b2c ;  height: 60px; text-align: center; color: #f5f5f5; font-weight: 900; padding: 15px;font-size:2em; font-family: Trebuchet MS&#39;&gt;<br>          APPLICATION REGISTRATION<br>        &lt;/div&gt;<br>        &lt;div style=&#39;font-size:2em; font-family: Trebuchet MS; padding: 20px; background-color:#f5f5f5; color: #057f3f&#39;&gt;&lt;br&gt; Hello &quot; &amp; gblNewUserFullName &amp; &quot;,&lt;br&gt;&lt;br&gt; Please complete your account registration using the code below. <br>         &lt;div style=&#39;background-color: #f5f5f5;  ; height: 60px; text-align: center; color: #057f3f; font-weight: 900; padding: 15px;font-size:2em; font-family: Trebuchet MS&#39;&gt;<br>          &quot; &amp; gblRegistrationCodeSent &amp; &quot;<br>        &lt;/div&gt;<br>    &lt;/div&gt;<br>      &lt;/div&gt;&quot;,<br>                Importance: &quot;Normal&quot;<br>            }<br>        );<br>        Notify(<br>            &quot;You are one step away! Enter the code sent to your email to complete your registration&quot;,<br>            NotificationType.Information,<br>            4000<br>        );<br>        Navigate(<br>            &#39;Confirm Registration&#39;,<br>            Transition.Push<br>        );<br>        <br>    );</pre><p>19. Add a new <strong>screen </strong>and name it <strong>‘Confirm Registration’ </strong>with a<strong> Fill value </strong>of<strong> ColorFade( RGBA(22, 255, 89, 1), 90%)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rBONkjpWkyIhcsUrdFCB-g.png" /><figcaption>Registration confirmation screen</figcaption></figure><p>20. Add a <strong>vertical container</strong> to the new screen and use the values below to set its properties.</p><pre>1. Direction: Vertical<br>2. Justify: Start<br>3. Align: Center<br>4. Gap: 8<br>5. Width: 600<br>6. Height: 700<br>7. Border radius: 8<br>8. Drop shadow: 8<br>9. X: Parent.Width/2 - Self.Width/2<br>10. Y: Parent.Height/2 - Self.Height/2</pre><p>21. Add an <strong>HTML control</strong> for the header and paste the below code into its text property.</p><pre>1. HTML Text:<br>    &quot;&lt;div style= &#39;padding:5px;height:45px; width: &quot;&amp;Parent.Width &amp;&quot;px;  <br>    text-align:center; font-size:2em; font-family: Trebuchet MS; <br>    font-weight:900&#39;&gt;Enter Code&lt;/div&gt;&quot;<br><br>2. Height: 75<br>3. Padding Bottom: 0<br>4. Other paddings: 5<br>5. Width: Parent.Width</pre><p>22. Add a<strong> text input control</strong> where users would input the confirmation code sent to their email address. Name the input control <strong>txtRegistrationCode</strong></p><pre>1. Flexible width: Off<br>2. Width: 500<br>3. Align: By the container, Center<br>4. Height: 50<br><br>//Other propeties can be experimented with</pre><p>23. The space between the <strong>txtRegistrationCode </strong>and the<strong> Confirm button </strong>is just an empty label used to separate the controls. A <strong>label or HTML</strong> control can be used to achieve this.</p><p>24. Add a <strong>Button </strong>control as seen in the confirm screen image above. The <strong>align </strong>and <strong>width </strong>properties are the same as the input text control in step 22. The code for the <strong>Onselect property</strong> is provided below.</p><pre>Set(<br>    CodeExpired,<br>    If(<br>        DateDiff(<br>            gblTimeCodeWasSent,<br>            Now(),<br>            TimeUnit.Minutes<br>        ) &gt; 5,<br>        true,<br>        false<br>    )<br>);<br>Set(<br>    CodeError,<br>    If(<br>        Value(txtRegistrationCode.Text) &lt;&gt; gblRegistrationCodeSent,<br>        true,<br>        false<br>    )<br>);<br>If(<br>    CodeExpired,<br>    false;<br>    Notify(<br>        &quot;Code has expired. Click resend for another code&quot;,<br>        NotificationType.Error,<br>        4000<br>    ),<br>    If(<br>        CodeError,<br>        false;<br>        Notify(<br>            &quot;Incorrect code. Try again&quot;,<br>            NotificationType.Error,<br>            4000<br>        ),<br>        If(<br>            CodeExpired = false And CodeError = false,<br>            ForAll(<br>                colNewUser,<br>                Patch(<br>                    LoginDemo,<br>                    Defaults(LoginDemo),<br>                    {<br>                        Title: Name,<br>                        UserName: UserName,<br>                        EmailAddress: Email,<br>                        Password: Password<br>                    }<br>                )<br>            );<br>            Navigate(<br>                &#39;Home Screen&#39;,<br>                ScreenTransition.Fade<br>            );<br>            Reset(txtRegistrationCode)<br>        );<br>        Notify(<br>            &quot;Registration successful. Please login&quot;,<br>            NotificationType.Information,<br>            3000<br>        )<br>    )<br>);<br>Reset(txtFullName);<br>Reset(txtUsername);<br>Reset(txtEmailAddress);<br>Reset(txtPassword);<br>Reset(txtConfirmPassword);</pre><p>25. Add another <strong>button</strong> to resend the registration code. Below is the code for the <strong>Onselect property</strong>.</p><pre>Set(<br>    gblTimeCodeWasSent,<br>    Now()<br>);<br>Set(<br>    gblRegistrationCodeSent,<br>    RandBetween(<br>        111111,<br>        999999<br>    )<br>);<br>Gmail.SendEmailV2(<br>    gblNewUserEmail,<br>    {<br>        Subject: &quot;Complete Registration&quot;,<br>        Body: &quot;&lt;div style=&#39;background-color: #f5f5f5; width: 650px; height: 400px; border: 2px solid black; padding-bottom: 30px; font-weight:600; color: #0c5c00&#39;&gt;<br>    &lt;div style=&#39;background-color: #638b2c ;  height: 60px; text-align: center; color: #f5f5f5; font-weight: 900; padding: 15px;font-size:2em; font-family: Trebuchet MS&#39;&gt;<br>      APPLICATION REGISTRATION<br>    &lt;/div&gt;<br>    &lt;div style=&#39;font-size:2em; font-family: Trebuchet MS; padding: 20px; background-color:#f5f5f5; color: #057f3f&#39;&gt;&lt;br&gt; Hello &quot; &amp; gblNewUserFullName &amp; &quot;,&lt;br&gt;&lt;br&gt; Please complete your account registration using the code below. <br>     &lt;div style=&#39;background-color: #f5f5f5;  ; height: 60px; text-align: center; color: #057f3f; font-weight: 900; padding: 15px;font-size:2em; font-family: Trebuchet MS&#39;&gt;<br>      &quot; &amp; gblRegistrationCodeSent &amp; &quot;<br>    &lt;/div&gt;<br>&lt;/div&gt;<br>  &lt;/div&gt;&quot;,<br>        Importance: &quot;Normal&quot;<br>    }<br>);<br>Notify(<br>    &quot;A code has been sent to your email&quot;,<br>    NotificationType.Information,<br>    4000<br>);</pre><p>26. Finally, add another <strong>button</strong> to navigate users back to the home screen to restart the registration process. A simple navigation function would do this.</p><h3>Part Two: User Login</h3><p><a href="https://medium.com/@orisunmibaree/part-two-log-in-and-registration-screen-in-powerapps-eeae2208f0d">https://medium.com/@orisunmibaree/part-two-log-in-and-registration-screen-in-powerapps-eeae2208f0d</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3e13e670b8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Linux Ubuntu on Windows 10 without partitioning.]]></title>
            <link>https://medium.com/@orisunmibaree/using-linux-ubuntu-on-windows-10-without-partitioning-6bf640cd8897?source=rss-33418ea5393c------2</link>
            <guid isPermaLink="false">https://medium.com/p/6bf640cd8897</guid>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[google-africa-scholarship]]></category>
            <category><![CDATA[windows-10]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <dc:creator><![CDATA[Emmanuel Anthony]]></dc:creator>
            <pubDate>Tue, 30 Jun 2020 11:12:01 GMT</pubDate>
            <atom:updated>2020-06-30T11:20:36.317Z</atom:updated>
            <content:encoded><![CDATA[<h3>Using Linux Ubuntu on Windows 10 Without Partitioning.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*nCaKid5GHD7tSea7zWhTiQ.png" /><figcaption>picture credit: <a href="https://www.google.com/url?sa=i&amp;url=https%3A%2F%2Ftech-ish.com%2F2018%2F05%2F10%2Fhow-to-install-ubuntu-desktop-on-windows-10%2F&amp;psig=AOvVaw3tRCt_AgEwN3LSfJQXfzbA&amp;ust=1593593424903000&amp;source=images&amp;cd=vfe&amp;ved=2ahUKEwjRv6qhlKnqAhVFaBoKHWFuAYoQr4kDegUIARC-AQ">tech-ish.com</a></figcaption></figure><p>Recently I have been taking Google sponsored courses on IT Support and Cloud Computing, and I realized how powerful and important the Linux operating system is in the industry.</p><p>This is a precise post that is aimed to enable computer users operate the Linux Ubuntu and Windows 10 operating systems on a computer without having to partition their disk space.</p><ol><li>Ensure that your machine is running on the latest Windows 10 version.</li><li>Search for “Turn Windows Feature on or ff” and check the “Windows subsystem for Linux” as shown below. The feature gets updated and you may need to reboot your machine for this feature to start working.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*_H_9va7u-jzlccHR66d2aQ.png" /><figcaption>Photo Credit: Anthony Emmanuel</figcaption></figure><p>3. Download the Linux Ubuntu 18.04 LTS or 20.04 LTS from the Microsoft App Store.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*oAKrlqdUbyaq66-v8izJGA.png" /><figcaption>Photo Credit: Anthony Emmanuel</figcaption></figure><p>4. Launch the Ubuntu OS on your computer and follow the simple prompt required to create a root user account.</p><p>5. Ensure you are still connected to the internet and run this command “<strong>apt-get update”. </strong>This updates all your package lists on the Ubuntu OS.</p><p>6. Next, run this command “<strong>apt-get upgrade”. </strong>This updates all your installed software on the Ubuntu OS to the latest version.</p><p><strong>With the above steps, you should be able to interact with the files on your Linux OS via its command line. The downside of this is the absence of a GUI. We would try fix that challenge by downloading an App that would serve as a remote desktop for our Linux OS using our machines’ localhost.</strong></p><p>7. Visit <a href="https://sourceforge.net/projects/xming/">https://sourceforge.net/projects/xming/</a> and click on the download button at the top to get Ximing App (2MB).</p><p>8. Lunch the App on your computer, leave all its setting at default, keep clicking <strong>Next</strong> and then <strong>Finish</strong>. Check the taskbar to ensure that its running.</p><p>9. Go to the Ubuntu command line and run this command “<strong>export DISPLAY=:0.0”</strong></p><p>10. Next, run this command <strong>“nautilus” </strong>and wait for a minute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*wWhGykOSg-tSKqXJaYp4Cw.png" /><figcaption>photo credit: Anthony Emmanuel</figcaption></figure><p><strong>The picture below shows the Linux GUI in a small size interface that looks like a remote desktop.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*hrMF4KOClU68nDFL34IiWg.png" /><figcaption>photo credit: Anthony Emmanuel</figcaption></figure><p>Up next, we would be seeing how we can download a Linux software and run it on our new OS. To be able to use the command Line, you would need to exit or close the Linux GUI we just lunched.</p><p>11. Run this command</p><p>wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -</p><p>12. Run this command</p><p>echo &quot;deb https://download.sublimetext.com/ apt/stable/&quot; | sudo tee /etc/apt/sources.list.d/sublime-text.list</p><p>13. Run this command</p><pre>sudo apt-get update</pre><p>14. Run this command</p><pre>sudo apt-get install sublime-text</pre><p><strong>Now lets lunch the Sublime text software we just installed on our Linux OS.</strong></p><p>15. Lunch the Linux GUI by following the instructions<strong> 8–10</strong> above.</p><p>16. On your Linux GUI, click on “<strong>Filesystem”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*Ls8fyV20GRkOyeiqsCMXRg.png" /><figcaption>photo credit: Anthony Emmanuel</figcaption></figure><p>17. Search for “<strong>Sublime text”</strong> using the search icon above.</p><p>Click the first folder from the results provided.</p><p>18. Then scroll down to the <strong>Sublime_text file with 8.8MB</strong> and double click.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*9-A75F3NotiTBmtUQlgomw.png" /><figcaption>photo credit: Anthony Emmanuel</figcaption></figure><p>There you go!</p><p>I tried to keep it simple, and I hope it helped.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6bf640cd8897" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>