Ryan Albrecht
07/11/2022, 4:34 PMOokma-Kyi
07/18/2022, 7:57 PMcomponent extends="coldbox.system.EventHandler" {
// default Action
function index( event, rc, prc ){
event.setHTTPHeader( statusCode = 400 );
relocate(uri = "/");
}
// terms of service Action
function termsofservice( event, rc, prc ){
prc.pageTitle = "Terms of Service";
event.setView( "legal/termsofservice" );
}
...
}
I added a default action to redirect the user to the home page if they try to access the root of the uri example: localhost:8080/legal
and set the status code to 400 Bad Request
. Is this correct or should i be using a different status code?Becky Hilton
07/21/2022, 3:22 PMcomponent implements = "java:com.digitalpersona.uareu.Engine.EnrollmentCallback" {
component implements = "java:com.digitalpersona.uareu.Engine$EnrollmentCallback" {
component implements = "java:Engine.EnrollmentCallback" {
This is how we are calling it from our cfm like this
createObject(component, "...callback_component").init(rc);
and this is the error message we are seeing
The java:com.digitalpersona.uareu.Engine.EnrollmentCallback ColdFusion component or interface name, used to extend or implement the model.UserProfile.callback_component component is invalid. Ensure that the file exists, that the name does not start or end with a period (.), and the name is not an empty string.
Invalid component or interface name.
We have the jar file for digitalpersona in our lib directory and are using the other classes & interfaces already. But I'm not sure we have the right value in for implements or maybe we are missing something somewhere else.gsr
07/23/2022, 1:38 PMgsr
07/23/2022, 1:38 PMaliaspooryorik
LIMIT #form.length# offset #form.start#
is wide open to SQL injection attacks. You must defend against hackers. A simple cfqueryparam
(if your db supports bindings in the LIMIT clause) or even a val(form.length)
would be a good start.Ookma-Kyi
08/02/2022, 6:17 PMaccessors="true"
?
Example:
property name="id";
property name="username";
property name="email";
property name="password";
gsr
08/05/2022, 2:59 PMAnimesh Dutta
08/09/2022, 5:14 AMOokma-Kyi
08/11/2022, 2:52 PMproperty name="passwordresettoken";
property name="passwordresettokenexpiration";
Ookma-Kyi
08/11/2022, 6:43 PMmburt
08/11/2022, 7:30 PMPaul Costello
08/11/2022, 8:04 PMepipko
08/18/2022, 8:46 PMFormiko
08/19/2022, 2:09 AMFormiko
08/19/2022, 2:16 AMFormiko
08/19/2022, 9:49 AMFormiko
08/19/2022, 10:47 AMFormiko
08/19/2022, 10:49 AMFormiko
08/19/2022, 10:58 AMCody Kaczynski
08/24/2022, 4:12 PMCody Kaczynski
08/24/2022, 4:12 PMFileWrite
overwrite contents of an existing file, or will i need to FileDelete if FileExists
and then FileWrite
?Formiko
08/26/2022, 6:24 PMFormiko
08/26/2022, 6:47 PMFormiko
08/26/2022, 6:50 PMFormiko
08/26/2022, 6:50 PMOokma-Kyi
08/28/2022, 1:08 AMsnipplet
of the code https://bitbucket.org/ookma-kyi/workspace/snippets/rE7agp .Ookma-Kyi
08/29/2022, 5:02 PMindex
. I have no idea why as I am new to ColdFusion. Here is a code snippet https://gist.github.com/ookma-kyi/2cc0ae7f8d7920d6c3d5b66bcbdca355.Slackbot
08/30/2022, 6:12 PMgsr
09/03/2022, 12:57 PM