Skip to content

Commit

Permalink
Merge pull request #8 from NathanStrutz/master
Browse files Browse the repository at this point in the history
Added cfcookie, tweaked cflogin
  • Loading branch information
NathanStrutz committed May 2, 2013
2 parents 9fb7891 + b2b9439 commit 62925cc
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions cookie.cfc
@@ -0,0 +1,30 @@
<!-----------------------------------------------------------------------------------------------------------
MIT License
Copyright (c) 2011 The ColdFusion Community
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
See also: http://www.opensource.org/licenses/mit-license.html
------------------------------------------------------------------------------------------------------------->
<cfcomponent>
<cffunction access="public" returns="void" name="init">
<cfif structIsEmpty(arguments)>
<cfreturn />
</cfif>
<cfcookie attributeCollection="#arguments#" />
</cffunction>
</cfcomponent>
2 changes: 1 addition & 1 deletion loginuser.cfc
Expand Up @@ -26,7 +26,7 @@
<cfargument name="name" required="true" />
<cfargument name="password" required="true" />
<cfargument name="roles" required="true" />
<cfloginuser name="#arguments.name#" password="#arguments.password#" roles="#arguments.roles#" />
<cflogin><cfloginuser name="#arguments.name#" password="#arguments.password#" roles="#arguments.roles#" /></cflogin>
</cffunction>

</cfcomponent>

0 comments on commit 62925cc

Please sign in to comment.