lmajano
10/19/2022, 12:05 PMOokma-Kyi
10/21/2022, 8:16 PMredirectback()
https://github.com/elpete/redirectBack. According to it's description it uses flash storage to redirect back to the previous page. In my login, registration and forgotpassword controllers I am using the following code to redirect back if the user is already logged in to prevent him from creating additional accounts, reset password and log in again:
if ( auth.isLoggedIn() ) {
redirectBack();
}
The issue if the user hits the back button on their browser instead of navigating normally, when they try to access the "restricted"
page it redirects them the the last page they accessed normal. So for example:
1. Profile Page
2. Change Password
Back Button to Profile
Then try to access any of the 3 controllers I listed above via the url, it redirects to the Change Password page instead of Profile which I find weird. Any ideas?elpete
10/22/2022, 5:11 AMelpete
10/22/2022, 5:11 AMjc
10/23/2022, 2:27 AMCiqala Burt
10/24/2022, 12:28 PMCiqala Burt
10/24/2022, 12:30 PMsatauros
10/25/2022, 6:08 AMreturntype
) (source testbox\system\MockBox.cfc:681). Anyone run into this?satauros
10/25/2022, 6:47 PMDaryl Lackey
10/26/2022, 4:06 PMserver set web.aliases./guides = d:\\guides
For a test case, I added a dummy image to the d:\guides\image1.jpg and then in my cfm code, I have
<img src=“/guides/image1.jpg”> but the image is returning as a broken link.
For grins, I move the d:\guides folder to the webroot, updated the server set statement, restarted commandbox but I’m still getting a broken image.bdeline2
10/26/2022, 4:52 PMproperty name="mySetting" inject="coldbox:moduleSettings:_*mymodule*_:myTestSetting";
But is there some way to do something like this without actually hardcoding 'mymodule' or some other mechanism besides property injection?
My '_BaseComponent.cfc' is a component I use in multiple code bases and I copy it from one code base to another as needed (which isn't very much). I'm trying to help my future self out when I copy it and I forget to update the module name.Tyler Clendenin
10/27/2022, 1:58 PMgpickin
10/28/2022, 4:02 PMgpickin
10/28/2022, 9:26 PMjohnbarrett
10/28/2022, 11:39 PMPatrick
10/28/2022, 11:59 PMgpickin
10/29/2022, 12:40 AMPatrick
10/29/2022, 1:03 AMDaniel Mejia
10/30/2022, 12:57 AMredtopia
10/31/2022, 6:23 PMjohnbarrett
10/31/2022, 10:36 PMgarciadev
11/01/2022, 5:01 PMmithlond
11/01/2022, 6:26 PMjohnbarrett
11/02/2022, 7:59 PMlmajano
11/03/2022, 1:16 PMwebsolete
11/03/2022, 2:33 PMwebsolete
11/03/2022, 2:34 PMgpickin
11/04/2022, 3:57 PMOokma-Kyi
11/04/2022, 4:48 PMCommandBox> migrate up
Migrating: 2000_01_01_000000_create_users_table
Migrated: 2000_01_01_000000_create_users_table
Migrating: 2000_01_01_000001_create_belts_table
Migrated: 2000_01_01_000001_create_belts_table
Migrating: 2000_01_01_000002_create_characters_table
ERROR (5.5.2+00578)
Cannot add foreign key constraint
C:\Users\ookma\.CommandBox\cfml\modules\commandbox-migrations\modules\cfmigrations\modules\qb\models\Schema\SchemaBuilder.cfc
CREATE TABLE `characters` (
`id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
`userid` INTEGER NOT NULL,
`deleted` TINYINT(1) NOT NULL DEFAULT 0,
`active` TINYINT(1) NOT NULL DEFAULT 0,
`name` VARCHAR(25) NOT NULL UNIQUE,
`xp` INTEGER NOT NULL DEFAULT 0,
`belt` INTEGER NOT NULL,
`wins` INTEGER NOT NULL DEFAULT 0,
`loses` INTEGER NOT NULL DEFAULT 0,
`draws` INTEGER NOT NULL DEFAULT 0,
CONSTRAINT `pk_characters_id` PRIMARY KEY (`id`),
CONSTRAINT `fk_characters_userid` FOREIGN KEY (`userid`) REFERENCES `users` (`id`) ON UPDATE NO ACTION ON DELETE CASCADE,
CONSTRAINT `fk_characters_belt` FOREIGN KEY (`belt`) REFERENCES `belts` (`id`) ON UPDATE NO ACTION ON DELETE CASCADE
)
Um what?