1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-04 21:20:54 +00:00
Commit Graph

40 Commits

Author SHA1 Message Date
astaxie
1d8afdc9c9 gofmt -s & go_vet 2015-05-25 09:10:34 +08:00
supiyun
1592e9c04d 验证码reload问题
当页面放置一段时间,验证码将从缓存中失效。当用户再来刷新验证码将出现验证码404。对于reload操作应该直接生成验证码。
2015-05-25 09:10:34 +08:00
Liu Peng
b1efae6ff8 add missed LICENSE of captcha 2015-05-24 23:59:39 +08:00
Athurg Gooth
d961ae4cd8 Fix RequestURI nil caused template parse failed
Sometime RequestURI is not set, e.g. running after a front proxy server.

We should always follow the document's directive, to use Request.URL instead of RequestURI.

Refer: http://golang.org/pkg/net/http/#Request
2014-12-25 11:23:04 +08:00
Athurg Gooth
c52f634d9c Fix paginator attributes cannot be modified bug
We can only use SetPaginator to create a pagination.

After that, we always need to modify something, like the totalNum, perPageNum.

These change should be seen in the view.

So we should give the view a pointer than a object.
2014-12-11 16:42:50 +08:00
TossPig
fc07419938 Update mail.go 2014-10-11 00:42:01 +08:00
TossPig
d69eee23f0 添加错误返回
不知道英文区的人能否看懂Cnglish。。。
2014-10-11 00:38:31 +08:00
TossPig
41de7c7db6 fix
修改一个错误。
看到text/template包的写法,和你的想法是一致的。
2014-10-11 00:02:36 +08:00
TossPig
6a33647f30 修改参数类型
为了保持向后兼容,
2014-10-10 23:40:02 +08:00
TossPig
e5134873be 支持发送邮件内嵌附件
为*Email.AttachFile和Email.Attach增加了一个参数"id".
当id不为空时,设置头部信息Content-Disposition为inline,并添加Content-ID头的值为id
2014-10-10 14:40:07 +08:00
Jens Bissinger
262665f4e5 Remove PaginationController interface and pass context instead. Refs #835. 2014-10-08 16:01:42 +02:00
Jens Bissinger
0b3763cc67 Cleanup pagination documentation. Refs #835. 2014-10-08 16:00:00 +02:00
Jens Bissinger
fa6cbc08d9 Document usage of utils/pagination. Refs #835. 2014-10-07 11:23:08 +02:00
Jens Bissinger
c4f8f45da4 Move pagination to utils/pagination. Refs #837, #835. 2014-10-06 11:37:08 +02:00
astaxie
77294a5881 utils: fix the SliceIntersect 2014-08-22 16:50:07 +08:00
astaxie
a144769515 update the documents & comments 2014-08-18 16:41:43 +08:00
Francois
58ac0d5ea4 Update captcha.go
Captcha must be deleted if the user entered a "challenge" with a different length than the captcha.
2014-08-09 15:35:29 +02:00
astaxie
3f7ecea089 beego: Display function move from toolbox to utils 2014-08-04 20:52:18 +08:00
Stan Sun
22ba252c8f fix the comment of SliceIntersect
The implementations of SliceDiff and SliceIntersect are the same.
However, the comments of them are opposite.
The former is (slice1 - slice2) while the latter is (slice2- slice1)
2014-08-02 17:54:57 +08:00
astaxie
e7fcb824c1 utils: fix the safemap Items 2014-07-26 23:25:51 +08:00
astaxie
fefd8ddb5b beego: update licence& fix #669 2014-07-03 23:40:21 +08:00
astaxie
0f170a80da update the comments fix #658 2014-06-25 10:39:37 +08:00
astaxie
469f283b68 beego:fix captcha filter router 2014-06-19 20:29:36 +08:00
astaxie
085c362ffb beego:fix router expge 2014-06-18 23:32:47 +08:00
astaxie
c3a23b28ee beego: improve the RandomCreateBytes #620
when rand.Read is failed. will use the math/rand to generate the rand
bytes
2014-05-27 15:29:43 +08:00
astaxie
3f4d750dc4 utils: improve the file grep 2014-05-20 14:32:06 +08:00
astaxie
c188cbbcb4 update all files License 2014-05-17 02:26:50 +08:00
slene
5be22a99a8 fix captcha urlPrefix 2014-03-12 15:56:04 +08:00
傅小黑
ce2984f09a add comments for testing, utils and validation packages 2014-02-07 16:07:31 +08:00
slene
91d75e8925 add readme for captcha, and enhanced performance 2014-01-17 12:07:30 +08:00
slene
91cbe1f29b add some comments for captcha 2014-01-16 21:34:59 +08:00
slene
f419c12427 add captcha util 2014-01-16 20:53:35 +08:00
astaxie
d7f2c738c8 add attach file 2014-01-08 22:35:42 +08:00
astaxie
d06c04277f support send mail 2014-01-08 22:31:26 +08:00
astaxie
b1374b6a08 move safemap to utils & add many helpful slice function 2013-12-12 22:40:29 +08:00
astaxie
19119e99f7 move utils to utils libs & func move to templatefunc 2013-12-12 22:25:08 +08:00
kyle
9ff937591b rename some function name under /utils
change the function name to common english word
2013-12-12 19:30:44 +08:00
skyblue
a43a1be0b4 add some useful func 2013-12-11 22:18:45 +08:00
skyblue
52ebaece73 add other utils 2013-12-09 16:01:24 +08:00
skyblue
830ccb6660 initial utils dir 2013-12-09 13:30:19 +08:00