Changes made in Code On Time

In order to preserve the promise of transparency and open communication, the change log records changes to topics made by both customers and employees. Anyone can dispute a change by clicking the "Dispute" link and entering additional details.


  • January 23, 2020 19:59
    display operator, the poster:
    Reason: removed by the poster
  • January 21, 2020 08:18
    justin
    Changed reply in topic of Can't we perform login using C# code instead of $app.login? by justin to [Solved]<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />For those who want to write a new Login page (outside of COT framework but within the project)<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Send a post request to &lt;domain url&gt;/_invoke/Login<br alt="" name="" rel="" target="" title="" type="" value="" />with the body of&nbsp;<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"username":"user",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"password":"user123%",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"createPersistentCookie":true<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>If username &amp; password is valid, you will get the result of<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;"d":&nbsp;{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"name":&nbsp;"user",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"email":&nbsp;"<a alt="" href="mailto:user@test.com" name="" rel="nofollow" target="" title="" type="" value="">user@test.com</a>",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"access_token":&nbsp;"...",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"refresh_token":&nbsp;"...",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"picture":&nbsp;"",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"claims":&nbsp;{}<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;}<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>else you will get<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;"d":&nbsp;false<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>Now, update items 'identities' &amp; 'avatars' from localStorage with the return result via JavaScript.<br alt="" name="" rel="" target="" title="" type="" value="" />Then redirect to page with COT framework, it will show that user has been logged in.<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Regards<br alt="" name="" rel="" target="" title="" type="" value="" />.
  • January 21, 2020 07:59
    justin
    Changed reply in topic of Can't we perform login using C# code instead of $app.login? by justin to [Solved]<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />For those who want to write a new Login page (outside of COT framework but within the project)<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Send a post request to &lt;domain url&gt;/_invoke/Login<br alt="" name="" rel="" target="" title="" type="" value="" />with the body of&nbsp;<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"username":"user",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"password":"user123%",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"createPersistentCookie":true<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>If username &amp; password is valid, you will get the result of<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;"d":&nbsp;{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"name":&nbsp;"user",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"email":&nbsp;"<a alt="" href="mailto:user@test.com" name="" rel="nofollow" target="" title="" type="" value="">user@test.com</a>",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"access_token":&nbsp;"...",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"refresh_token":&nbsp;"...",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"picture":&nbsp;"",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"claims":&nbsp;{}<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;}<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>else you will get<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;"d":&nbsp;false<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>Now, update items 'identities' &amp; 'avatars' from localStorage with the return result via JavaScript.<br alt="" name="" rel="" target="" title="" type="" value="" />Then redirect to page with COT framework, it will show that user has been logged in.<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />This is also a security issue if user knows the way to call the login ws url, they can perform&nbsp;brute-force attack in order to access other accounts.<br /><br alt="" name="" rel="" target="" title="" type="" value="" />It can be avoided if the login ws url restricted to the same domain only.&nbsp;<br alt="" name="" rel="" target="" title="" type="" value="" />Disable&nbsp;CORS should be able to solve it but web api services cannot be performed from other domain.<br />Adding extra header is another way......<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Regards<br alt="" name="" rel="" target="" title="" type="" value="" />.
  • January 21, 2020 07:50
    justin
    Changed reply in topic of Can't we perform login using C# code instead of $app.login? by justin to [Solved]<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />For those who want to write a new Login page (outside of COT framework but within the project)<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Send a post request to &lt;domain url&gt;/_invoke/Login<br alt="" name="" rel="" target="" title="" type="" value="" />with the body of&nbsp;<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"username":"user",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"password":"user123%",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"createPersistentCookie":true<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>If username &amp; password is valid, you will get the result of<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;"d":&nbsp;{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"name":&nbsp;"user",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"email":&nbsp;"<a alt="" href="mailto:user@test.com" name="" rel="nofollow" target="" title="" type="" value="">user@test.com</a>",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"access_token":&nbsp;"...",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"refresh_token":&nbsp;"...",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"picture":&nbsp;"",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"claims":&nbsp;{}<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;}<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>else you will get<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;"d":&nbsp;false<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>Now, update items 'identities' &amp; 'avatars' from localStorage with the return result via JavaScript.<br alt="" name="" rel="" target="" title="" type="" value="" />Then redirect to page with COT framework, it will show that user has been logged in.<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />This is also a security issue if user knows the way to call the login ws url, they can perform&nbsp;brute-force attack in order to access other accounts.<br alt="" name="" rel="" target="" title="" type="" value="" />It can be avoided if the login ws url restricted to the same domain only.&nbsp;<br alt="" name="" rel="" target="" title="" type="" value="" />Disable&nbsp;CORS should be able to solve it but web api services cannot be performed from other domain.<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Regards<br alt="" name="" rel="" target="" title="" type="" value="" />.
  • January 21, 2020 07:45
    justin
    Changed reply in topic of Can't we perform login using C# code instead of $app.login? by justin to [Solved]<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />For those who want to write a new Login page (outside of COT framework but within a project)<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Send a post request to &lt;domain url&gt;/_invoke/Login<br alt="" name="" rel="" target="" title="" type="" value="" />with the body of&nbsp;<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"username":"user",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"password":"user123%",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"createPersistentCookie":true<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>If username &amp; password is valid, you will get the result of<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;"d":&nbsp;{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"name":&nbsp;"user",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"email":&nbsp;"<a alt="" href="mailto:user@test.com" name="" rel="nofollow" target="" title="" type="" value="">user@test.com</a>",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"access_token":&nbsp;"...",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"refresh_token":&nbsp;"...",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"picture":&nbsp;"",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"claims":&nbsp;{}<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;}<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>else you will get<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;"d":&nbsp;false<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>Now, update items 'identities' &amp; 'avatars' from localStorage with the return result via JavaScript.<br alt="" name="" rel="" target="" title="" type="" value="" />Then redirect to page with COT framework, it will show that user has been logged in.<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />This is also a security issue if user knows the way to call the login ws url, they can perform&nbsp;brute-force attack in order to access other accounts.<br alt="" name="" rel="" target="" title="" type="" value="" />It can be avoided if the login ws url restricted to the same domain only.&nbsp;<br alt="" name="" rel="" target="" title="" type="" value="" />Disable&nbsp;CORS should be able to solve it but web api services cannot be performed from other domain.<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Regards<br alt="" name="" rel="" target="" title="" type="" value="" />.
  • January 21, 2020 07:30
    justin
    Changed reply in topic of Can't we perform login using C# code instead of $app.login? by justin to [Solved]<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />For those who want to write a new Login page (outside of COT framework but within a project)<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Send a post request to &lt;domain url&gt;/_invoke/Login<br alt="" name="" rel="" target="" title="" type="" value="" />with the body of&nbsp;<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"username":"user",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"password":"user123%",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"createPersistentCookie":true<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>If username &amp; password is valid, you will get the result of<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;"d":&nbsp;{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"name":&nbsp;"user",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"email":&nbsp;"<a alt="" href="mailto:user@test.com" name="" rel="nofollow" target="" title="" type="" value="">user@test.com</a>",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"access_token":&nbsp;"...",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"refresh_token":&nbsp;"...",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"picture":&nbsp;"",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"claims":&nbsp;{}<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;}<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>else you will get<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;"d":&nbsp;false<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>Now, update items 'identities' &amp; 'avatars' from localStorage with the return result via JavaScript.<br alt="" name="" rel="" target="" title="" type="" value="" />Then redirect to page with COT framework, it will show that user has been logged in.<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Regards<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />.
  • January 21, 2020 07:30
    justin
    Changed reply in topic of Can't we perform login using C# code instead of $app.login? by justin to [Solved]<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />For those who want to write a new Login page (outside of COT framework but within a project)<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Send a post request to &lt;domain url&gt;/_invoke/Login<br alt="" name="" rel="" target="" title="" type="" value="" />with the body of&nbsp;<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"username":"user",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"password":"user123%",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"createPersistentCookie":true<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>If username &amp; password is valid, you will get the result of<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;"d":&nbsp;{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"name":&nbsp;"user",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"email":&nbsp;"<a alt="" href="mailto:user@test.com" name="" rel="nofollow" target="" title="" type="" value="">user@test.com</a>",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"access_token":&nbsp;"...",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"refresh_token":&nbsp;"...",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"picture":&nbsp;"",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"claims":&nbsp;{}<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;}<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>else you will get<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;"d":&nbsp;false<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>Now, update items 'identities' &amp; 'avatars' from localStorage with the return result via JavaScript.<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Then redirect to page with COT framework, it will show that user has been logged in.<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Regards<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />.
  • January 21, 2020 07:29
    justin
    Changed reply in topic of Can't we perform login using C# code instead of $app.login? by justin to [Solved]<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />For those who want to write a new Login page (outside of COT framework but within a project)<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Send a post request to &lt;domain url&gt;/_invoke/Login<br alt="" name="" rel="" target="" title="" type="" value="" />with the body of&nbsp;<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"username":"user",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"password":"user123%",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"createPersistentCookie":true<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>If username &amp; password is valid, you will get the result of<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;"d":&nbsp;{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"name":&nbsp;"user",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"email":&nbsp;"<a alt="" href="mailto:user@test.com" name="" rel="nofollow" target="" title="" type="" value="">user@test.com</a>",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"access_token":&nbsp;"...",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"refresh_token":&nbsp;"...",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"picture":&nbsp;"",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"claims":&nbsp;{}<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;}<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>else you will get<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote>{<br />&nbsp;&nbsp;&nbsp;&nbsp;"d":&nbsp;false<br />}</blockquote>Now, update items 'identities' &amp; 'avatars' from localStorage via JavaScript.<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Then redirect to page with COT framework, it will show that user has been logged in.<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Regards<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />.
  • January 21, 2020 07:28
    justin
    Changed reply in topic of Can't we perform login using C# code instead of $app.login? by justin to [Solved]<br /><br />For those who want to write a new Login page (outside of COT framework but within a project)<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Send a post request to &lt;domain url&gt;/_invoke/Login<br alt="" name="" rel="" target="" title="" type="" value="" />with the body of&nbsp;<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"username":"user",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"password":"user123%",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;"createPersistentCookie":true<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>If username &amp; password is valid, you will get the result of<br alt="" name="" rel="" target="" title="" type="" value="" /><blockquote alt="" name="" rel="" target="" title="" type="" value="">{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;"d":&nbsp;{<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"name":&nbsp;"user",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"email":&nbsp;"<a alt="" href="mailto:user@test.com" name="" rel="nofollow" target="" title="" type="" value="">user@test.com</a>",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"access_token":&nbsp;"...",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"refresh_token":&nbsp;"...",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"picture":&nbsp;"",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"claims":&nbsp;{}<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp;&nbsp;&nbsp;&nbsp;}<br alt="" name="" rel="" target="" title="" type="" value="" />}</blockquote>Now, update items 'identities' &amp; 'avatars' from localStorage via JavaScript.<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Then redirect to page with COT framework, it will show that user has been logged in.<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Regards<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />.
  • January 21, 2020 02:57
    justin
    Changed description of Question as above.<br />Regards<br />Justin by justin to Question as above.<br /><br />We still can link controllers together (Nested DataView etc) in COT application.<br /><br alt="" name="" rel="" target="" title="" type="" value="" />Regards<br alt="" name="" rel="" target="" title="" type="" value="" />Justin.
  • January 21, 2020 02:03
    justin
    Changed reply in topic of Performance between JavaScript, C# and SQL in Business Rules by justin to HI, Roberto. Thanks for your advice.&nbsp;.
  • January 21, 2020 02:00
    justin
    Changed reply in topic of How do you overide login and failed password attempt counts by justin to Hi, Steve.<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />You may override UserLogin function from&nbsp;ApplicationServices class to perform your custom logic.<br alt="" name="" rel="" target="" title="" type="" value="" />Source:&nbsp;<a alt="" href="https://codeontime.com/learn/security/handling-login-and-logout" name="" rel="nofollow" target="" title="" type="" value="">https://codeontime.com/learn/security/handling-login-and-logout</a><br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />You may also refer&nbsp;<a alt="" href="https://c.getsatisfaction.com/codeontime/topics/relaxing_password_restrictions_while_using_an_asp_net_standalone_database" name="" rel="nofollow" target="" title="" type="" value="">Link</a>&nbsp;to setup your own membership configuration.<br /><br />Regards<br />Justin<br alt="" name="" rel="" target="" title="" type="" value="" />.
  • January 20, 2020 19:36
    Gary N, the poster:
    Reason: removed by the poster
  • January 20, 2020 15:47
    justin
    Changed reply in topic of touch-settings.json full list details by justin to Additional Fields:<br alt="" name="" rel="" target="" title="" type="" value="" /><br />"import": {<br />&nbsp; "batchSize": 200<br />},<br alt="" name="" rel="" target="" title="" type="" value="" />"host": {<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp; &nbsp; "icon": "",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp; &nbsp; "color": "#000",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp; &nbsp; "image": "",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp; &nbsp; "description": ""<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp; },<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />But I have no idea with that, can someone explain what s the purposes of them..
  • January 20, 2020 10:28
    justin
    Changed reply in topic of touch-settings.json full list details by justin to Additional Fields:<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />"host": {<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp; &nbsp; "icon": "",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp; &nbsp; "color": "#000",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp; &nbsp; "image": "",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp; &nbsp; "description": ""<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp; },<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />But I have no idea with that, can someone explain what s the purposes of them..
  • January 20, 2020 10:14
    justin
    Changed reply in topic of touch-settings.json full list details by justin to Additional Fields:<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />"host": {<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp; &nbsp; "icon": "",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp; &nbsp; "color": "#000",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp; &nbsp; "image": "",<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp; &nbsp; "description": ""<br alt="" name="" rel="" target="" title="" type="" value="" />&nbsp; },<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />But I have no idea with that, can someone explain what s the purposes of them.<br alt="" name="" rel="" target="" title="" type="" value="" />If value exists for these fields, then they will be added to Response in&nbsp;HandleRequest method (ApplicationServices.cs).
  • January 19, 2020 02:24
    justin
    Changed description of Hey, guys.<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Recently I planned to start a new project using C# code only.<br alt="" name="" rel="" target="" title="" type="" value="" />Just curious, is there any performance issue if all the business rules written in C# compared to JavaScript and SQL?<br alt="" name="" rel="" target="" title="" type="" value="" />Also, I found that it is much more convenience to manage the functions just like&nbsp;MyProfileBusinessRules.cs which generated by COT automatically.<br /><br />Known Exception:<br />- Attachment validation (naturalWidth, naturalHeight, content type, length) can only be done in JavaScript.<br /><br alt="" name="" rel="" target="" title="" type="" value="" />Regards. by justin to Hey, guys.<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Recently I planned to start a new project using C# code only.<br alt="" name="" rel="" target="" title="" type="" value="" />Just curious, is there any performance issue if all the business rules written in C# compared to JavaScript and SQL?<br alt="" name="" rel="" target="" title="" type="" value="" />Also, I found that it is much more convenience to manage the functions just like&nbsp;MyProfileBusinessRules.cs which generated by COT automatically.<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Known Exception:<br alt="" name="" rel="" target="" title="" type="" value="" />- Attachment validation (naturalWidth, naturalHeight, set byte[] to null) can only be done in JavaScript.<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Regards..
  • January 18, 2020 22:40
    Tom Graham, the poster:
    Reason: removed by the poster
  • January 18, 2020 10:49
    justin
    Changed description of Hey, guys.<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Recently I planned to start a new project using C# code only.<br alt="" name="" rel="" target="" title="" type="" value="" />Just curious, is there any performance issue if all the business rules written in C# compared to JavaScript and SQL?<br alt="" name="" rel="" target="" title="" type="" value="" />Also, I found that it is much more convenience to manage the functions just like&nbsp;MyProfileBusinessRules.cs which generated by COT automatically.<br alt="" name="" rel="" target="" title="" type="" value="" /><br />Regards. by justin to Hey, guys.<br alt="" name="" rel="" target="" title="" type="" value="" /><br alt="" name="" rel="" target="" title="" type="" value="" />Recently I planned to start a new project using C# code only.<br alt="" name="" rel="" target="" title="" type="" value="" />Just curious, is there any performance issue if all the business rules written in C# compared to JavaScript and SQL?<br alt="" name="" rel="" target="" title="" type="" value="" />Also, I found that it is much more convenience to manage the functions just like&nbsp;MyProfileBusinessRules.cs which generated by COT automatically.<br /><br />Known Exception:<br />- Attachment validation (naturalWidth, naturalHeight, content type, length) can only be done in JavaScript.<br /><br alt="" name="" rel="" target="" title="" type="" value="" />Regards..
  • January 17, 2020 10:39
    justin
    Changed reply in topic of Roadmap 2020 by justin to Yeah, please, COT teams.<br alt="" name="" rel="" target="" title="" type="" value="" />Besides, where is the hot fix 5 (8.9.5.0) which is expecting to be released on this week..
next » « previous